Problem with "PlaySound()" Function????

When ever I used to Play a .Wav file through "PlaySound" Function it is stopping the Previous sound and Playing the new one.

I want to Two files to be Played Simultaneously.

Is there any other function in VC++. or How can we use the PlaySound Function to play the multiple .Wav files simultaneously..


Thanx

Aarkay


Answer this question

Problem with "PlaySound()" Function????

  • Fabio Vazquez

    PlaySound is not capable to do this. You can try it with DirectX.

    Try another newsgroup for this from http://msdn.microsoft.com/newsgroups/



  • JHalmans

    Install the DirectX SDK. Open the Sample Browser. You will find several examples that play multiple sounds at once.

  • Adrian Browne

    agree

  • William Lai

    Do you know google, it is a phantastic search machine. :-)

    Searching for DirectX and PlaySound shows a lot of usable hits, one is

    http://www.codeproject.com/directx/dxsmith.asp

    Check if it does what you want. I know that DirectX can play multiple sounds at once.



  • Bogdan.B

    Thanx Martin,

    but in DirectX which function will support to Play Multiple Wav files.


  • Problem with "PlaySound()" Function????