Hi,
The SndPlayResource() API can be used to play a wave file from a resource. As I can see the API supports the sndFlagAsync flag, which the API will return immediately while playback continues in a separate thread.
Right now, I use DmGetResource() and MemHandleLock() to get the wave file from a resource and then pass it to the API.
My question is when can I perform a MemHandleUnlock() and DmReleaseResource() after calling the SndPlayResource() with sndFlagAsync?
Can I perform MemHandleUnlocK() and DmReleaseResource() right after the SndPlayResource() return?
Thanks.
Tony Cheung
-- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
