Welcome to the new platform of Programmers Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use it's exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.
Sound in C/C++ application
I have tried PlaySound both synchronous and asynchronous but my c application seems to use the same resource as PlaySound as the wav file stop playing(although running in ASYNC mode) when it reaches other parts of the application code.
My question now is whether i can still use PlaySound to do the sound by changing a few options in PlaySound.I'm not quite sure what option like SND_APPLICATION AND SND_MEMORY does even after reading the documentation at microsoft.com.Can someone explain them to me?
If the problem is not solvable by PlaySound then i wish to use c code to open/play a wav file using realPlayer or mediaPlayer.Can someone show me?