If you turn off system sound, but keep alarm sound and game sound on, you'll
disable the click sounds, as well as any other system sounds. I know several
people who choose to keep their system sound off. You can use the General
panel to do this directly. To do it programmatically, you need to do what
the General panel does. I suggest you take the necessary steps to get access
to the source code, so you can answer questions like this yourself. It's
well worth the effort. The General panel does something like this:

        volume = 0;
        PrefSetPreference(prefSysSoundVolume, volume);
        SndSetDefaultVolume(NULL, &volume, NULL);

Note that messing with the user's system preferences in your application is
not generally something you want to do, since the user doesn't expect
settings they change within an application to affect the behavior of other
applications. If you want to temporarily override the system sound
preference to avoid hearing a click when performing a certain action, you
might try leaving the system sound preference alone, but calling only
SndSetDefaultVolume to temporarily silence the system sounds, then call it
again to restore the user's system sound preference.
-- 
Peter Epstein

-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/tech/support/forums/

Reply via email to