Regards Henk
Luc Le Blanc wrote:
I want to beep a sound regardless of the current system sound volume (many users set it to Off to avoid the key click every time they tap something). My application thus overrides this by offering its own volume setting. Every time I need to beep to signal some erroneous action (and when an alert would be too much), I temporarily change the sound volume to my application user preference by calling SndGet/SetDefaultVolume, play the beep and reset the original volume. This worked fine until OS 5, where the API Reference states SndGet/SetDefaultVolume APIs cannot be called, and user preferences should be used instead. I thus tried calling PrefSetPreference with the prefSysSoundVolume preference, but as system preferences are cached until a reset, this has no effect, and the device remains silent.
How can I override the system sound volume and play a beep under OS 5?
I must say I had hoped PalmOS would eventually fix this all-or-nothing approach where turning off the key click also turns off alert sounds.
-- Luc Le Blanc
-- ------------------------------------------------------------------------- Henk Jonas Palm OS � certified developer
[EMAIL PROTECTED] www.metaviewsoft.de -------------------------------------------------------------------------
-- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
