Thanks,
Ive worked around this myself, by writing my own non blocking sound driver.
It works like this:
One function Play_Sound (UInt8 num beeps) which sets up some static data
Then a Do_Sound function which is called every 100ms on nilEvents, which
processes the static data.
Hence I can queue up 3 beeps, then on the first do_sound I can beep, on the
second do nothing, third beep etc,
creating a beep - 100ms gap - beep.
This can be expanded to be more complex, but its fine for me.
The only real problem comes if you want to call Do_Sound at a higher speed
as if another message is being processed you get delayed, also you can get
the odd nilEvent for no apparent reason, but it seems to work fine so far.
> -----Original Message-----
> From: Danny Epstein [SMTP:[EMAIL PROTECTED]]
> Sent: 13 February 2001 18:43
> To: Palm Developer Forum
> Subject: Re: Asyncronous beeping sounds
>
> "Richard Anderson" <[EMAIL PROTECTED]> wrote in message
> news:39417@palm-dev-forum...
> > Therefore I want to
> > create a function PlayMyBeeps (UInt8 num_beeps) which returns strait
> away.
>
> See the docs for SndDoCommand, specifically sndCmdNoteOn and sndCmdFrqOn.
> These are non-blocking, but they only play one note. You'll need to take
> care of starting the next note at the appropriate time. Note that
> non-blocking sound wasn't supported prior to Palm OS 3.0; you had to
> directly access the pulse width modulator (PWM).
> --
> Danny Epstein
> OS Engineer, Palm Inc.
>
>
> --
> 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/