Click to See Complete Forum and Search --> : Make '.wav' a resource?


April 19th, 1999, 02:02 PM
I want to play a .wav file in my application. I can play from file with no problem using:

PlaySound( "c:\\mysound.wav",NULL, SND_ASYNC|SND_FILENAME );

But, I don't want to distribute '.wav' files with my app. Any way to make the sounds part of my app, say as a resource?

Thanks,
GL Hovis

Safai Ma
April 20th, 1999, 10:52 PM
Take a look at <url>http://www.codeguru.com/multimedia/play_wav.shtml</url>

Safai

Candan
April 20th, 1999, 11:55 PM
try this.
PlaySound("IDR_WAVE1", NULL, SND_RESOURCE | SND_ASYNC);

hope helps.