PlaySound() issue...

i am having problem in playing two sounds at same time via PlaySound() and another problem is that i cant play sound in the presence of glutTimerFunc() even once ??

help asap plzzzz…:frowning:

I guess you are talking about the Windows function PlaySound(). It stops the thread until the sound play is finished.

If you want a non blocking sound API, look into OpenAL, Fmod, BASS and the many other APIs.

You might want to drop buy one of their forums and ask questions about the API.

PlaySound with SND_ASYNC won’t block, but sound is really nothing to do with OpenGL and you’re probably better off asking elsewhere.

thanx
i have got solution provided by my University teacher
she has given me an header file only
and now i can play with them according to my will…:slight_smile: