Hi
I am trying to play a wav file from a resource file using MMSYSTEM PlaySound, but the file is not found as its of type WAVE
If I use to locate some text data from resource then the file is found
if(FindResource(hInstance, PChar(ASound), RT_RCDATA) <> 0) then
using the same on the wav file fails as it not RT_RCDAT but a WAVE type.
Likewise
if PlaySound('T_3765_A', HInstance, SND_ASYNC or SND_NODEFAULT or SND_RESOURCE)=false then showmessage('cannot play sound');
Will produce the cannot play sound message, as I assume its cant locate the resource type.
Is there a RC_WAVE? data type.
Any other suggestions welcome, its only to be windows so no x-platform needed