On 10/17/06, Roger Stringer <[EMAIL PROTECTED]> wrote:
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.
a sound stream doesn't technically finish until you call SndStreamStop()
and SndStreamDelete(). this normally occurs when you exit your
application. but, i think based on your latest mail, your more inclined
to know when you have fiinshed playing a sample so it is safe to exit.
the solution is simple. set a feature in your sound callback. when the
buffers are empty - you set it to a known value, which you can
basically poll in the main application prior to terminating the streams.
you also have a globals data object which you pass to the stream,
put a variable inside that if you dont want to use features.
--
// Aaron Ardiri
--
For information on using the PalmSource Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/support/forums/