1 /* 2 * speaker.h -- interface definitions for speaker ioctl() 3 * 4 * v1.4 by Eric S. Raymond (esr@snark.thyrsus.com) Aug 1993 5 * modified for FreeBSD by Andrew A. Chernov <ache@astral.msk.su> 6 */ 7 8 #ifndef _SPEAKER_H_ 9 #define _SPEAKER_H_ 10 11 #include <sys/ioctl.h> 12 13 #define SPKRTONE _IOW('S', 1, tone_t) /* emit tone */ 14 #define SPKRTUNE _IO('S', 2) /* emit tone sequence*/ 15 16 typedef struct 17 { 18 int frequency; /* in hertz */ 19 int duration; /* in 1/100ths of a second */ 20 } 21 tone_t; 22 23 /* 24 * Strings written to the speaker device are interpreted as tunes and played; 25 * see the spkr(4) man page for details. 26 */ 27 28 #endif /* _SPEAKER_H_ */ 29 30 /* speaker.h ends here */ 31