1993-11-09 02:31:53 +00:00
|
|
|
/*
|
|
|
|
* 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>
|
1994-08-02 07:55:43 +00:00
|
|
|
*
|
1999-08-28 01:08:13 +00:00
|
|
|
* $FreeBSD$
|
1993-11-09 02:31:53 +00:00
|
|
|
*/
|
|
|
|
|
2005-11-11 09:57:32 +00:00
|
|
|
#ifndef _DEV_SPEAKER_SPEAKER_H_
|
|
|
|
#define _DEV_SPEAKER_SPEAKER_H_
|
1993-11-09 02:31:53 +00:00
|
|
|
|
1996-09-21 14:59:43 +00:00
|
|
|
#include <sys/ioccom.h>
|
1993-11-09 02:31:53 +00:00
|
|
|
|
|
|
|
#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 */
|
2002-10-23 10:14:30 +00:00
|
|
|
} tone_t;
|
1993-11-09 02:31:53 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Strings written to the speaker device are interpreted as tunes and played;
|
|
|
|
* see the spkr(4) man page for details.
|
|
|
|
*/
|
|
|
|
|
2005-11-11 09:57:32 +00:00
|
|
|
#endif /* !_DEV_SPEAKER_SPEAKER_H_ */
|