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