Longer "BEEP" needed
5 messages in this thread
Larry,
In a program soon to be published, I give the user the choice of a standard
screen flash (DisplayBeep()), or the flash with a beep. I create the beep by
allocating a channel (any channel), and then hitting the hardware, then
de-allocating the channel. I will test your SetBeep with it, but do you see
any potential problems? —Mike
Mike,
The only potential problem is that I apparently open the audio device outside
(and initialize it) outside the function that actually does the beep, which
causes problems if another program is calling DisplayBeep() at the same time.
-larry
If you allocate and initialize first, and setfunc() last, there shouldn't be
a problem. You could even forbid() during the setfunc(). —Mike
Mike,
problem was that it would try to use the same IOReq struct, and mung the one
in progress… should be fixable.
-larry
For whatever reason, MIDI Magic crashes when run in parallel with SetBeep.
Didn't bother to try to find out why. If there's any information I can dig up
for you on this one, let me know.
Rick