In my .rcp file I do something like this:
DATA "WAVE" ID MYSOUND_ID "mysound.wav"

Then in the source:
if ((memHandle = DmGetResource('WAVE', MYSOUND_ID)) != NULL) 
  if ((memPtr = (UInt8 *) MemHandleLock(memHandle)) != NULL)
    SndPlayResource(memPtr, 800, sndFlagSync);

...yada, yada, yada

You'll probably want to turn the .wav file into a raw file and use the 
SndStream* functions since it gives you more control, but is a little more 
difficult to code.  

David

-- 
For information on using the PalmSource Developer Forums, or to unsubscribe, 
please see http://www.palmos.com/dev/support/forums/

Reply via email to