On Mon, 6 Oct 2003 07:31:28,  rajan writes:
>Will the following work for audio playback. Has anybody tried something of 
>this sort ????
>
>1. Allocate memory for a  a buffer which will hold wav data
>2. Start the Stream using SndStreamStart after doing the SndStreamCreate
>3. After SndStreamStart, start filling up data into the  buffer
>4. In the callback read the data from the buffer(passed as UserData) and 
>copy into into the passed  callback buffer
>
>I always get garbled sound when I do this.

You may need to prefill the buffer before calling SndStreamStart,
otherwise there may be no data in the buffer the first time your
callback is invoked.  You also need some mechanism to make sure
you can keep the the buffer filled before it gets emptied.

YMMV.

Ron Nicholson
HotPaw Productions
 <http://www.hotpaw.com/rhn/palm> 

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

Reply via email to