Hi Everyone,

I running into a problem with sample playback on OS5. 
I've added wav sounds to a game of mine that causes a
"click" sound everytime a game piece drops on the
screen.  This causes a very rapid sequence of
back-to-back calls to API 'SndPlayResource'.

Everything sounds fine for the first 2 or 3 calls, but
after that, it seems that the sound manager gets
bogged down and eventually the sound cuts off
completely!  I am using 'sndFlagAsync' for async
playback and my sample is only 100 bytes, so it's not
a very long duration.  I've also tried loading all
'wave' resources at AppStart (MemHandleLock), to
remove any delay during playback...this didn't help.

As it stands, it seems that the sound manager can only
handle sample playback at spread-out intervals. 
Anyone else have problems like this?

Thanks!

-Robert
www.bapsoft.com


__________________________________________________
Do you Yahoo!?
U2 on LAUNCH - Exclusive greatest hits videos
http://launch.yahoo.com/u2

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

Reply via email to