[142] | 1 | /* $Id: osssound.h 142 2000-04-23 14:55:46Z ktk $ */
|
---|
| 2 |
|
---|
| 3 | //******************************************************************************
|
---|
| 4 | // Header for oss sound constants
|
---|
| 5 | //
|
---|
| 6 | // Copyright 2000 Sander van Leeuwen (sandervl@xs4all.nl)
|
---|
| 7 | //
|
---|
| 8 | // This program is free software; you can redistribute it and/or
|
---|
| 9 | // modify it under the terms of the GNU General Public License as
|
---|
| 10 | // published by the Free Software Foundation; either version 2 of
|
---|
| 11 | // the License, or (at your option) any later version.
|
---|
| 12 | //
|
---|
| 13 | // This program is distributed in the hope that it will be useful,
|
---|
| 14 | // but WITHOUT ANY WARRANTY; without even the implied warranty of
|
---|
| 15 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
---|
| 16 | // GNU General Public License for more details.
|
---|
| 17 | //
|
---|
| 18 | // You should have received a copy of the GNU General Public
|
---|
| 19 | // License along with this program; if not, write to the Free
|
---|
| 20 | // Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139,
|
---|
| 21 | // USA.
|
---|
| 22 | //
|
---|
| 23 | //******************************************************************************
|
---|
| 24 | #ifndef __OSSSOUND_H__
|
---|
| 25 | #define __OSSSOUND_H__
|
---|
| 26 |
|
---|
| 27 | #ifdef __cplusplus
|
---|
| 28 | extern "C" {
|
---|
| 29 | #endif
|
---|
| 30 |
|
---|
| 31 | #define OSS_IDMASK 0xF
|
---|
| 32 | #define OSS_RWMASK 0xF0
|
---|
| 33 |
|
---|
| 34 | #define OSS_DSPID 0
|
---|
| 35 | #define OSS_SYNTHID 1
|
---|
| 36 | #define OSS_MIDIID 2
|
---|
| 37 | #define OSS_MIXERID 3
|
---|
| 38 | #define OSS_SPECIALID 4
|
---|
| 39 | #define OSS_MAX_DEVICES 5
|
---|
| 40 |
|
---|
| 41 | #define OSS_STREAM_READ 0x10
|
---|
| 42 | #define OSS_STREAM_WRITE 0x20
|
---|
| 43 |
|
---|
| 44 | #define OSS_STREAM_WAVEOUT (OSS_STREAM_WRITE|OSS_DSPID)
|
---|
| 45 | #define OSS_STREAM_WAVEIN (OSS_STREAM_READ|OSS_DSPID)
|
---|
| 46 | #define OSS_STREAM_MIDIOUT (OSS_STREAM_WRITE|OSS_MIDIID)
|
---|
| 47 | #define OSS_STREAM_MIDIIN (OSS_STREAM_READ|OSS_MIDIID)
|
---|
| 48 |
|
---|
| 49 | #ifndef TARGET_OS2_16
|
---|
| 50 | extern struct file_operations oss_devices[OSS_MAX_DEVICES];
|
---|
| 51 | #endif
|
---|
| 52 |
|
---|
| 53 | #ifdef __cplusplus
|
---|
| 54 | }
|
---|
| 55 | #endif
|
---|
| 56 |
|
---|
| 57 | #endif
|
---|