The reason why I need the sound off is it is too noisy on ctlRepeatEvent
events in my case because there is substantial delay implemented in the
event handler purposely.

Thanks for the reply. I read something similar in a thread but could not
find it again.

----- Original Message -----
From: "Joe" <[EMAIL PROTECTED]>
To: "Palm Developer Forum" <[EMAIL PROTECTED]>
Sent: Sunday, May 26, 2002 10:29 PM
Subject: Re: Disable sound on repeat event


> --- Alexandre Kazantsev <[EMAIL PROTECTED]> wrote:
> > How to handle disable/enable sound on ctlRepeatEvent
> > properly? Are there examples or articles covering the
> > issue?
>
> I believe the sound you are talking about is made by
> SndPlaySystemSound(sndClick) when the control event handler sends
> itself another ctlRepeatEvent.  One option might be to turn off system
> sounds using PrefSetPreference(prefSysSoundLevelV20, slOff) when you
> get the first ctlRepeatEvent.  Then you should turn sound back on --if
> it was previously on-- when you get either ctlSelectEvent or
> ctlExitEvent for that control.  Make sure you return false for
> ctlRepeatEvent or the OS will stop the ctlRepeatEvent loop.
>
> I haven't done this, so it is possible I'm missing something, but I
> think it will probably work.  The downside to this is that you are
> modifying normal behavior of the system, so you probably shouldn't do
> it.  Why do you want to disable sound on ctlRepeatEvent?
>
>
> __________________________________________________
> Do You Yahoo!?
> Yahoo! - Official partner of 2002 FIFA World Cup
> http://fifaworldcup.yahoo.com
>
> --
> For information on using the Palm Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/support/forums/




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

Reply via email to