How can I play a .WAV sound in a simple c++ console aplication? I am using code blocks on windows xp.I need the most simple and efficient way.Thanks in advance 😀
Btw:CAn i play 2 sounds at the same time?Like background music and sound effects?
How can I play a .WAV sound in a simple c++ console aplication? I
Share
You could use the Simple Direct Media Layer (SDL) library along with SDL_Mixer library. http://content.gpwiki.org/index.php/SDL_mixer:Tutorials:Playing_a_WAV_Sound_File
Here’s an excellent tutorial: http://lazyfoo.net/SDL_tutorials/lesson11/index.php