This commit was generated by cvs2svn to track changes on a CVS vendor
[unix-history] / sys / i386 / include / speaker.h
CommitLineData
ee741be1
AC
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
16typedef struct
17{
18 int frequency; /* in hertz */
19 int duration; /* in 1/100ths of a second */
20}
21tone_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 */