Making a wav file compiled with the executable.

Hello, so what i'm trying to do is create an executable that does not require the wav file to be in the same directory. I want the WAV file to also be compiled with the executable.

Here is what i currently am using which requires the WAV to be in the directory.

 
PlaySound(TEXT("file.wav"), NULL, SND_FILENAME | SND_ASYNC);
Make the sound a resource. See if this link helps: https://msdn.microsoft.com/en-us/library/windows/desktop/dd743679(v=vs.85).aspx
Hey, yeh I saw that before coming here but it didn't really make too much sense to me unfortunately ;/ thats why I posted in the beginners section aha because it's the first time i've worked with sound files
Topic archived. No new replies allowed.