Have you considered turning off the speaker at the beginning of this and turning it 
back on when you are done?  I know, it doesn't
discover the true problem, but it will get rid of the symptom.

I'll keep the political jokes and analogies away from this group.

Steve

"Schettino, John" wrote:

> Here is an odd behavior I cannot seem to track down...
>
> I have a app that uses the old serial manager code, "back door" methods to
> do event-based reads of the serial port:
>
>         if (sirRefNum == sysInvalidRefNum) {
>                 err = SysLibFind ("Serial Library", &sirRefNum);
>                 if (err) return;
>
>                 err = SerOpen (sirRefNum, 0, 9600);
>                 if (err && (err != serErrAlreadyOpen)) {
>                         sirRefNum = sysInvalidRefNum;
>                         return;
>                 }
>
>                 // We're going to use a Wakeup Handler
>                 // instead of polling for input
>                 SerSetWakeupHandler(sirRefNum, SIRWake, 0);
>                 SerPrimeWakeupHandler(sirRefNum, 1);
>         }
>
> Now for the weird part... When this code runs, the Palm device (several that
> I've tested including Palm IIIc/ 3.5os, pdQPhone/3.0x, VII/3.2) there is a
> soft "tick" sound (ie, SndPlaySystemSound(sndClick)) played *every time* the
> code above is executed. Commenting out the SerSet/SerPrime calls gets rid of
> the sound, but also renders the program non-functional.
>
> Where is that sound comming from, and how do I get rid of it?
>
> - John Schettino
>
> --
> For information on using the Palm Developer Forums, or to unsubscribe, please see 
>http://www.palmos.com/dev/tech/support/forums/


-- 
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