* Copyright (c) 1991, 1992, 1993
* The Regents of the University of California. All rights reserved.
* This software was developed by the Computer Systems Engineering group
* at Lawrence Berkeley Laboratory under DARPA contract BG 91-66 and
* contributed to Berkeley.
* All advertising materials mentioning features or use of this software
* must display the following acknowledgement:
* This product includes software developed by the University of
* California, Lawrence Berkeley Laboratory.
* %sccs.include.redist.c%
* @(#)bsd_audioio.h 8.1 (Berkeley) %G%
* from: $Header: bsd_audioio.h,v 1.5 92/11/21 20:46:46 van Exp $ (LBL)
* /dev/audio ioctls. needs comments!
#define AUDIO_MIN_GAIN (0)
#define AUDIO_MAX_GAIN (255)
#define AUDIO_ENCODING_ULAW (1)
#define AUDIO_ENCODING_ALAW (2)
u_long seek
; /* BSD extension */
struct audio_prinfo play
;
struct audio_prinfo record
;
u_int blocksize
; /* input blocking threshold */
u_int hiwat
; /* output high water mark */
u_int lowat
; /* output low water mark */
u_int backlog
; /* samples of output backlog to gen. */
typedef struct audio_info audio_info_t
;
#define AUDIO_INITINFO(p)\
(void)memset((void *)(p), 0xff, sizeof(struct audio_info))
#if (defined(sun) || defined(ibm032)) && !defined(__GNUC__)
#define AUDIO_GETINFO _IOR(A, 21, struct audio_info)
#define AUDIO_SETINFO _IOWR(A, 22, struct audio_info)
#define AUDIO_DRAIN _IO(A, 23)
#define AUDIO_FLUSH _IO(A, 24)
#define AUDIO_WSEEK _IOR(A, 25, u_long)
#define AUDIO_RERROR _IOR(A, 26, int)
#define AUDIO_GETMAP _IOR(A, 27, struct mapreg)
#define AUDIO_SETMAP _IOW(A, 28, struct mapreg)
#define AUDIO_GETINFO _IOR('A', 21, struct audio_info)
#define AUDIO_SETINFO _IOWR('A', 22, struct audio_info)
#define AUDIO_DRAIN _IO('A', 23)
#define AUDIO_FLUSH _IO('A', 24)
#define AUDIO_WSEEK _IOR('A', 25, u_long)
#define AUDIO_RERROR _IOR('A', 26, int)
#define AUDIO_GETMAP _IOR('A', 27, struct mapreg)
#define AUDIO_SETMAP _IOW('A', 28, struct mapreg)
#define AUDIO_HEADPHONE 2
#endif /* _BSD_AUDIOIO_H_ */