Advertisement

PlaySound()?

Started by December 03, 2001 05:12 AM
4 comments, last by Melhisedek 23 years, 2 months ago
I have used PlaySound() in my project and I can play some wav sounds. Problem is I can''t play this "Imperial March" sound that I want to play Is there a limitation on how big wav sounds I can play ??? I can play files that are some 50-100kb but my file is 12 MB big is there anything I can do to fix it ? Any help is appreciated ! Thanks in advance !!!
Playsound will use all the memory you have, I''ve played 40MB songs without a problem.
Advertisement
Fixed it
Thing is can i initiate it directly when my project starts ???
I have it play when I press M button on my keyboard...
Is there a way to initiate it directly ???
Where are you intializing it?

have you tried it in the INitGL code (applys if your using the Nehe template) works for me.
Do you have MSDN? very useful. I have several scenes that dump the last piece of music and start another when the next screen is loaded. I''m at work at the moment but I believe you can just plump it in the main (ASYNC) without a problem. Read through the simple sounds tutorial its all in there (somewhere).
PlaySound("Data(or whatever file)/YourSound.wav", NULL,SND_LOOP | SND_ASYNC);

should do it.

This topic is closed to new replies.

Advertisement