Click to See Complete Forum and Search --> : Play sound on PPC / PPC 2002


Yovav
July 3rd, 2002, 02:37 PM
I need 2 play "WAVE" resources from a DLL

what I did (works on Win32) :


bool playWaveResource(UINT ResourceName)
{
if(PlaySound(MAKEINTRESOURCE(ResourceName), MODULE_HANDLE, SND_RESOURCE|SND_ASYNC))
return(true); // Successful

//MessageBox(NULL, _T("No sound !"), _T("Note"), MB_OK);
return(false); // Failed
}

but it gives me "no sound" on PPC 2002 emulator,

what is different on Win CE (PPC 2002) ?
should I include other stuff ?

kandukondein
July 3rd, 2002, 02:40 PM
What did the GetLastError return?
Check out that...
-Kandukondein

alanr
July 3rd, 2002, 03:24 PM
Shalom~
Are you debugging on an actual device or just using an emulator? *** ou are using an emulator, is ii the one that came with eVC++ 3.0?

Yovav
July 3rd, 2002, 03:42 PM
I run on an emulator,

but I know it is possible to hear sound also on the emulator,

10X...

alanr
July 3rd, 2002, 05:04 PM
change MODULE_HANDLE to NULL and see what happens...

Yovav
July 4th, 2002, 03:09 AM
10 Q all,

the problem was the quality of the sound file,

11.025Khz 16Bit Mono is now working !