|
-
March 22nd, 2009, 07:34 PM
#1
sndPlaySound Wont play
Hi
Im back =)
Well I was trying to play a .wav file from my app path with
PlaySound("BELLS.wav",NULL,SND_FILENAME|SND_LOOP|SND_ASYNC);
and tryed
sndPlaySound ("BELLS.wav",SND_LOOP|SND_ASYNC);
the PlaySound wont do nothing but the sndPlaySound will make beeps like the is not in the apppath witch it was
So.... I gave up and moved on an tryed playing it from the resources.
I added the resources an the BEELS.wav to the resources
An used this code to try to play it
sndPlaySound(MAKEINTRESOURCE(IDR_WAVE1), SND_RESOURCE |SND_ASYNC );
and tryed
PlaySound(MAKEINTRESOURCE(IDR_WAVE1), SND_RESOURCE |SND_ASYNC );
and tryed
HANDLE sndBoing;
HRSRC hResInfo = FindResource(hInstance, MAKEINTRESOURCE(IDR_WAVE1), "WAVE");
hResInfo = FindResource(hInstance, MAKEINTRESOURCE(IDR_WAVE1), "WAVE");
sndBoing = LoadResource(hInstance, hResInfo);
const char* sndRes = (const char*)LockResource(sndBoing);
PlaySound(sndRes, SND_MEMORY|SND_ASYNC|SND_NODEFAULT);
UnlockResource(sndRes);
But none of the worked
Here is a screen shot of my scr
http://img19.picoodle.com/img/img19/...em_040fb11.jpg
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|