I use async playback with SmPlayResource and I lock the resources at program start and unlock it at program end. This works quite well. I assume the resources are packed close together in memory, so locking them doesn't hurt anything. They will not moved away in any case. The sound playing with OS 5 seems at all not very reliable.
Henk
Robert Purcell wrote:
Danny,
Those examples in the SDK are for SYNCHRONOUS wave
playback. Sure, sync playback is a piece of
cake!...that's not my problem. My problem is with
Asynchronous playback. Async playback returns
immediately rather than waiting for the wave to play
to completion.
Can anyone else offer any help or suggestions?
Thanks,
-Robert
www.bapsoft.com
-------------------------------------------------
From: Danny Wong <[EMAIL PROTECTED]> Hi,
Look at the wave sound example on the PalmOS site and
With the example in the OS 5.0 SDK.
regards
-----Original Message-----
From: Robert Purcell [mailto:purc1234@y...] Sent: November 15, 2002 2:20 PM
To: Palm Developer Forum
Subject: Async Waves on OS5
Hi Everyone,
I've read that if you play back waves asynchronously
in OS5, you're not supposed to unlock the handle to
the sound resource until the sound has finished
playing. Unlocking the handle in the middle of
playback can cause system crashes, etc.
My question: How do I know (programmatically) when
the wave has finished playing? Right now, it's a
guessing game for me, but I think this may explain why
I get sound "clipping" and other artifacts when I try
to play waves quickly on OS5 (I'm unlocking handles
that are still being used by the OS).
Any help would be greatly appreciated!
-Robert
www.bapsoft.com
__________________________________________________
Do you Yahoo!?
Yahoo! Web Hosting - Let the expert host your site
http://webhosting.yahoo.com
-- ------------------------------------------------------------------------- [EMAIL PROTECTED] www.metaviewsoft.de
<A HREF="http://www.handango.com/PlatformTopSoftware.jsp?authorId=95946"> <IMG SRC="http://user.cs.tu-berlin.de/~jonash/werbung.jpg"></A> ------------------------------------------------------------------------- -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
