pcaudioio.h (17203) | pcaudioio.h (18444) |
---|---|
1/*- 2 * Copyright (c) 1994 S�ren Schmidt 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 11 unchanged lines hidden (view full) --- 20 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 21 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 22 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 23 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 24 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 * | 1/*- 2 * Copyright (c) 1994 S�ren Schmidt 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 11 unchanged lines hidden (view full) --- 20 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 21 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 22 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 23 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 24 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 * |
28 * $Id: pcaudioio.h,v 1.5 1996/01/30 22:54:42 mpp Exp $ | 28 * $Id: pcaudioio.h,v 1.6 1996/07/17 20:18:42 joerg Exp $ |
29 */ 30 | 29 */ 30 |
31#ifndef _PCAUDIOIO_H_ 32#define _PCAUDIOIO_H_ | 31#ifndef _MACHINE_PCAUDIOIO_H_ 32#define _MACHINE_PCAUDIOIO_H_ |
33 | 33 |
34#include <sys/ioccom.h> 35 |
|
34typedef struct audio_prinfo { 35 unsigned sample_rate; /* samples per second */ 36 unsigned channels; /* # of channels (interleaved) */ 37 unsigned precision; /* sample size in bits */ 38 unsigned encoding; /* encoding method used */ 39 40 unsigned gain; /* volume level: 0 - 255 */ 41 unsigned port; /* input/output device */ --- 30 unchanged lines hidden (view full) --- 72#define AUDIO_SETINFO _IOWR('A', 2, audio_info_t) 73#define AUDIO_DRAIN _IO('A', 3) 74#define AUDIO_FLUSH _IO('A', 4) 75 76/* compatibility to /dev/audio */ 77#define AUDIO_COMPAT_DRAIN _IO('P', 1) 78#define AUDIO_COMPAT_FLUSH _IO('P', 0) 79 | 36typedef struct audio_prinfo { 37 unsigned sample_rate; /* samples per second */ 38 unsigned channels; /* # of channels (interleaved) */ 39 unsigned precision; /* sample size in bits */ 40 unsigned encoding; /* encoding method used */ 41 42 unsigned gain; /* volume level: 0 - 255 */ 43 unsigned port; /* input/output device */ --- 30 unchanged lines hidden (view full) --- 74#define AUDIO_SETINFO _IOWR('A', 2, audio_info_t) 75#define AUDIO_DRAIN _IO('A', 3) 76#define AUDIO_FLUSH _IO('A', 4) 77 78/* compatibility to /dev/audio */ 79#define AUDIO_COMPAT_DRAIN _IO('P', 1) 80#define AUDIO_COMPAT_FLUSH _IO('P', 0) 81 |
80#endif /*!_PCAUDIOIO_H*/ | 82#endif /* !_MACHINE_PCAUDIOIO_H_ */ |