Henk Jonas a écrit : > I can switch off the sound for system (taps etc.) and alarms seperately > on my T3.
Alarm != Alert > But what about SndDoCmd to alert the user? Good idea. Is there a way I can get the frequency/duration of the sndConfirmation, sndWarning and sndError built-in tones to match them? > You can specify > your own volume (you should o.c. use the user's volume settings). o.c.? I would indeed use my application user-chosen sound level. I wouldn't provide this if PalmOS hadn't associated alert sounds with the key click setting. -- Luc Le Blanc > 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. -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/