Making the Music Play at the click of a button=>
Ok point blank, I have the sound file, I have some knowlage of the C language. How do I get the sound file to truckle on my command?
Can I do this kind of thing from dos?
What Libraries, Functions, commands would I use?
what type of audio files can be used? ( wav. Mp3...)
thanx
peace
-Sage13
May 09, 2001 12:20 PM
You can play sounds from DOS - but I would seriously advise programming in good ol'' Windows. Using Windows, a simple call to PlaySound will enable you to play a single sample either statically or with looping. If you want more control, you can utilize the streaming Windows multimedia functions, DirectSound or any other such audio wrapper ( Steinbergs ASIO is damned good in terms of latency ).
Finally, you could use a third party sound system such as FMod or Bass - just do a search for them. They all support the usual audio formats such as WAV and MP3, as well as MODs and all that gubbins.
Finally, you could use a third party sound system such as FMod or Bass - just do a search for them. They all support the usual audio formats such as WAV and MP3, as well as MODs and all that gubbins.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement