zze-URIA RECIO Pedro FTRD/DMR/ISS wrote:
The MP3 players use the OS5 sound manager, which allows you to create a new sound thread. I beleive you can use this to create a background thread for you application, but it is not something I have done.With regard to my previous question,
Does anybody think that I can achieve this apparent multitasking effect by letting the alarm manager execute my program periodically?
Pedro URIA-RECIO
R&D Engineer - france telecom R&D (FTR&D/DMR/SRS)
Satellite Services and Networks Laboratory 38-40 rue du G�n�ral Leclerc, 92794 Issy-Les-Moulineaux Cedex 9 FRANCE
T�l: +33 (0) 1 45 29 66 98 Fax: +33 (0) 1 45 29 45 34 E-mail: [EMAIL PROTECTED]
You can use the alarm manager to schedule an alarm for a few seconds time, and then go back to sleep. Be carfull not to use any globals as you will be sub-launched from another application. Also Palm OS will close any databases left open and clean up any leaked memory when the foreground application quits (which can happen between your alarm calls), so make sure to use MemPtrSetOwner(0) to asign any memory you allocate to the system if you need to keep it between alarms.
-- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
