Advertisement

Making the Music Play at the click of a button=>

Started by May 07, 2001 10:36 PM
1 comment, last by Sage13 23 years, 6 months ago
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
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.
Advertisement
OK, I''ll see what I can cook up

-Sage13

This topic is closed to new replies.

Advertisement