Sorry but that's not the end of the process I was concerned with.
In this example, when the file has been read, there is still some amount of unplayed sound in the buffers of the sound stream. So if you kill the sound stream there will be some unplayed sound lost.
Roger Stringer At 04:15 AM 10/16/2006, you wrote:
Subject: Re: Knowing when a sound stream ends? From: "Dollars 5" <[EMAIL PROTECTED]> Date: Mon, 16 Oct 2006 01:22:13 +0530 X-Message-Number: 2 From within the callback at end of file (assuming you feed data from file) - raise an event and in event handler stop and delete the sound stream. This is available in the SDK examples. On 10/16/06, Roger Stringer <[EMAIL PROTECTED]> wrote: > > Palm OS 5.4 provides a nice set of functions to initiate a sound stream, > close it down, and feed the sound into it through a call back function, but > I can't see how to detect when the sound stream has finished. > > Since the sound is double buffered, knowing when the call back function > has fed the last part of the sound into the buffer is useful, but doesn't > allow me to know when the last part of the buffer has been played. > > Any one have any ideas how to figure this out?
-- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
