#DEVICE = AdLib
DEVICE = OSS
-#
-# For termio a la System V, add -DUSG to DEFINES. (Linux in particular needs
-# this.)
#
# For alternate random number generator, add either -DUSELRAND for lrand48(),
# or -DUSERAND for (ugh) rand(). Default is -DUSERANDOM for random().
#
-# If the same speaker making the morse code beeps will also make ^G beeps
-# (which occur when you get a letter wrong), you may want to #define
-# ERROR_VOLUME to be 1.; this will cause the ^G beeps to be made using
-# the same routines that do the morse-code beeps, possibly preventing
-# conflicts. (If you prefer quieter error beeps, you can use anything
-# between 0. and 1.; if you want it the same volume as the morse-code
-# beeps, use "-DERROR_VOLUME=volume". If you don't like the pitch of
-# the error tone, you can override the default by #defining ERROR_FREQ to
-# be your favorite wake-up alarm frequency, in hertz.)
-#
# On a Sun workstation you may want to compile with -DFULLVOLUME (see beepSun.c
# for more details).
#
-#DEFINES = -DUSG -DUSELRAND
-DEFINES = -DUSG
+#DEFINES = -DUSELRAND
#DEFINES = -DFULLVOLUME
#DEFINES =
* added System V support.
*
* Joe Dellinger, Nov 1994:
- * Fixed a bug in the termio calls for the -DUSG case.
+ * Fixed a bug in the USG termio calls.
* Added an option to make the "error" beep come out via the beep
* routines instead of by printing a control-G.
*
* Changed ALLPUNCTUATION to runtime -B option.
* Changed ERROR_FREQUENCY to runtime -x option.
* Changed ERROR_VOLUME to runtime -X option.
+ * Dropped BSD signal support.
* Wrote the manual page.
*/
#include <signal.h>
#include "beep.h"
+#define USG
+
#define FREQUENCY 800.0
#define FREQUENCY2 602.0
#define VOLUME 0.5
<arg choice='opt'>-S </arg>
<arg choice='opt'>-x <replaceable>num</replaceable></arg>
<arg choice='opt'>-X <replaceable>num</replaceable></arg>
- <arg choice='opt'><replaceable>word</replaceable></arg>
+ <arg rep='repeat' choice='opt'><replaceable>word</replaceable></arg>
</cmdsynopsis>
</refsynopsisdiv>