1. alternative to sound or beep command
- Posted by tiger0581 Jul 24, 2009
- 885 views
- Last edited Jul 25, 2009
Hello. Since the sound and beep functions only work under DOS, are there alternatives for Windows, Linux and Mac OS 10? I wrote a countdown timer that I would like to beep a few times when the time is up. Thanks.
2. Re: alternative to sound or beep command
- Posted by CoJaBo Jul 24, 2009
- 855 views
- Last edited Jul 25, 2009
tiger0581 said...
Hello. Since the sound and beep functions only work under DOS, are there alternatives for Windows, Linux and Mac OS 10? I wrote a countdown timer that I would like to beep a few times when the time is up. Thanks.
Its generally better to use the sound-playing APIs on those systems. Win32lib has playSound() and Beep() for example. It is possible to do a system-speaker beep, but note that some newer computers lack an internal speaker or play it thru the regular speakers at an obscenely loud volume level.
3. Re: alternative to sound or beep command
- Posted by doncole2009 Jul 24, 2009
- 880 views
- Last edited Jul 25, 2009
Try
include graphic.e global procedure beep(integer num) atom t for i = 1 to num do machine_proc(1, 1000) t = time() while time() < t + .1 do end while machine_proc(1, 0) t = time() while time() < t + .1 do end while end for end procedure Don Cole