   Play music in WIndows api
  Play music in WIndows api. How would I beable to play background music and still call this  PlaySound("MenuKnopka.wav ", hInstMain, SND_ASYNC | SND_FILENAME );with out canceling each other out and not using direct music yet.compiler dev-cpp 
  << with out canceling each other out and not using direct music yet. >>That's the problem with PlaySound. You can only play 1 WAV file at a time. The second the new WAV plays, the previous sound gets cancelled. I had this same problem last year when I was learning Win32. Your choices are:DirectSound for multiple WAVs playing at the same time along with Win32 mciSendCommand for playing MIDIDirectSoundDemo.cpp    | EXE   You'll also need for DSLoadSoundBuffer( )dsutil.cpp | dsutil.hMCIMIDI.c   This mci one does compile as is, I found this off the net. It uses mciSendCommand to load, play, and pause a MIDI file. Requires winmm.lib just like PlaySound.Or.... FMOD which is very easy to set up, and can play both WAV and MIDI. You just include the given .dll and add the given .lib to your compiler. And the FMOD documentation is very good.With DirectSound though you can include your .wav as resources inside the .EXE, with FMOD I think you have to use files.FMOD.org   Phil P   [edited by - PhilVaz on February 19, 2004 6:21:25 AM];BASS is fantastic for this sort of thing - I''ve used it briefly for playing a .mod file, but it does *everything*. Minor problem is that, while it''s free for freeware, shareware or commercial use does attract a licensing fee. 