By the way, if there IS a correct way to use SndPlayResource with sndFlagAsync, I'd love to know about it.
Have your application be stored in ROM, so its data won't move or be invalidated, even if unlocked :)
Looking at the OS code, there's no way to detect if the sound is complete. SndPlayResource just either starts up a new thread for the sound playback or it calls the playback routine itself in the current thread. Either way, there's no mechanism to detect when it's done. The hardware calls to determine if there are active sound streams isn't exposed to application developers.
-- Ben Combee, Technical Lead, Developer Services, PalmSource, Inc. "Combee on Palm OS" weblog: http://palmos.combee.net/ Developer Forum Archives: http://news.palmos.com/read/all_forums/
-- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
