CompuServe Thread

Longer "BEEP" needed

5 messages in this thread
#28444From: Mike BerroJan 2, 1989 5:06 PM
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
#28546From: John DraperJan 3, 1989 1:28 AM
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
#28554From: Mike BerroJan 3, 1989 1:41 AM
If you allocate and initialize first, and setfunc() last, there shouldn't be a problem. You could even forbid() during the setfunc(). —Mike
#28568From: John DraperJan 3, 1989 3:58 AM
Mike, problem was that it would try to use the same IOReq struct, and mung the one in progress… should be fixable. -larry
#28663From: Richard Rae/SYSOPJan 3, 1989 9:53 PM
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