On Tue, 30 Sep 2003 08:34:50, Alexander Galkin writes: >SysNotifyBroadcastDeferred API. Unfortunately, the notification routine is >not invoked when user is doing intensive UI operation so buffer becomes >empty. What could be a solution to this problem? I though if I could handle >hardware timer interrupt I could fill in buffer from timer interrupt service >routine. But I don't know how to register and handle hardware interrupts on >Palm OS 5.
Some people have experimented with using the OS 5 Sampled Sound callback API for periodic calculations which need a higher priority than the UI thread. There's nothing to keep the callback from playing silence, and using its time slot for some other functionality. Just make sure you don't exceed the time allocated to the callback (which can be tricky to determine when other sounds are playing), and make sure the routine is safe from deadlocks. 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/
