doom3-gpl
Doom 3 GPL source release
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Classes | Macros | Typedefs | Functions
soundcard.h File Reference
#include <sys/ioctl.h>

Go to the source code of this file.

Classes

struct  synth_control
 
struct  remove_sample
 
struct  seq_event_rec
 
struct  patch_info
 
struct  sysex_info
 
struct  sbi_instrument
 
struct  synth_info
 
struct  sound_timer_info
 
struct  midi_info
 
struct  mpu_command_rec
 
struct  audio_buf_info
 
struct  count_info
 
struct  buffmem_desc
 
struct  audio_errinfo
 
struct  oss_digital_control
 
struct  oss_syncgroup
 
struct  oss_count_t
 
struct  mixer_info
 
struct  _old_mixer_info
 
struct  mixer_vol_table
 
struct  oss_sysinfo
 
struct  oss_mixext
 
struct  oss_mixext_root
 
struct  oss_mixer_value
 
struct  oss_mixer_enuminfo
 
struct  oss_audioinfo
 

Macros

#define EXTERNC   extern
 
#define SOUND_VERSION   0x039999
 
#define OPEN_SOUND_SYSTEM
 
#define SNDCARD_ADLIB   1
 
#define SNDCARD_SB   2
 
#define SNDCARD_PAS   3
 
#define SNDCARD_GUS   4
 
#define SNDCARD_MPU401   5
 
#define SNDCARD_SB16   6
 
#define SNDCARD_SB16MIDI   7
 
#define SNDCARD_UART6850   8
 
#define SNDCARD_GUS16   9
 
#define SNDCARD_MSS   10
 
#define SNDCARD_PSS   11
 
#define SNDCARD_SSCAPE   12
 
#define SNDCARD_PSS_MPU   13
 
#define SNDCARD_PSS_MSS   14
 
#define SNDCARD_SSCAPE_MSS   15
 
#define SNDCARD_TRXPRO   16
 
#define SNDCARD_TRXPRO_SB   17
 
#define SNDCARD_TRXPRO_MPU   18
 
#define SNDCARD_MAD16   19
 
#define SNDCARD_MAD16_MPU   20
 
#define SNDCARD_CS4232   21
 
#define SNDCARD_CS4232_MPU   22
 
#define SNDCARD_MAUI   23
 
#define SNDCARD_PSEUDO_MSS   24
 
#define SNDCARD_GUSPNP   25
 
#define SNDCARD_UART401   26
 
#define SIOCPARM_MASK   0x1fff /* parameters must be < 8192 bytes */
 
#define SIOC_VOID   0x00000000 /* no parameters */
 
#define SIOC_OUT   0x20000000 /* copy out parameters */
 
#define SIOC_IN   0x40000000 /* copy in parameters */
 
#define SIOC_INOUT   (SIOC_IN|SIOC_OUT)
 
#define __SIO(x, y)   ((int)(SIOC_VOID|(x<<8)|y))
 
#define __SIOR(x, y, t)   ((int)(SIOC_OUT|((sizeof(t)&SIOCPARM_MASK)<<16)|(x<<8)|y))
 
#define __SIOW(x, y, t)   ((int)(SIOC_IN|((sizeof(t)&SIOCPARM_MASK)<<16)|(x<<8)|y))
 
#define __SIOWR(x, y, t)   ((int)(SIOC_INOUT|((sizeof(t)&SIOCPARM_MASK)<<16)|(x<<8)|y))
 
#define __SIOC_SIZE(x)   ((x>>16)&SIOCPARM_MASK)
 
#define __SIOC_DIR(x)   (x & 0xf0000000)
 
#define __SIOC_NONE   SIOC_VOID
 
#define __SIOC_READ   SIOC_OUT
 
#define __SIOC_WRITE   SIOC_IN
 
#define SNDCTL_SEQ_RESET   __SIO ('Q', 0)
 
#define SNDCTL_SEQ_SYNC   __SIO ('Q', 1)
 
#define SNDCTL_SYNTH_INFO   __SIOWR('Q', 2, struct synth_info)
 
#define SNDCTL_SEQ_CTRLRATE   __SIOWR('Q', 3, int) /* Set/get timer resolution (HZ) */
 
#define SNDCTL_SEQ_GETOUTCOUNT   __SIOR ('Q', 4, int)
 
#define SNDCTL_SEQ_GETINCOUNT   __SIOR ('Q', 5, int)
 
#define SNDCTL_SEQ_PERCMODE   __SIOW ('Q', 6, int)
 
#define SNDCTL_FM_LOAD_INSTR   __SIOW ('Q', 7, struct sbi_instrument) /* Obsolete. Don't use!!!!!! */
 
#define SNDCTL_SEQ_TESTMIDI   __SIOW ('Q', 8, int)
 
#define SNDCTL_SEQ_RESETSAMPLES   __SIOW ('Q', 9, int)
 
#define SNDCTL_SEQ_NRSYNTHS   __SIOR ('Q',10, int)
 
#define SNDCTL_SEQ_NRMIDIS   __SIOR ('Q',11, int)
 
#define SNDCTL_MIDI_INFO   __SIOWR('Q',12, struct midi_info)
 
#define SNDCTL_SEQ_THRESHOLD   __SIOW ('Q',13, int)
 
#define SNDCTL_SYNTH_MEMAVL   __SIOWR('Q',14, int) /* in=dev#, out=memsize */
 
#define SNDCTL_FM_4OP_ENABLE   __SIOW ('Q',15, int) /* in=dev# */
 
#define SNDCTL_SEQ_PANIC   __SIO ('Q',17)
 
#define SNDCTL_SEQ_OUTOFBAND   __SIOW ('Q',18, struct seq_event_rec)
 
#define SNDCTL_SEQ_GETTIME   __SIOR ('Q',19, int)
 
#define SNDCTL_SYNTH_ID   __SIOWR('Q',20, struct synth_info)
 
#define SNDCTL_SYNTH_CONTROL   __SIOWR('Q',21, struct synth_control)
 
#define SNDCTL_SYNTH_REMOVESAMPLE   __SIOWR('Q',22, struct remove_sample) /* Reserved for future use */
 
#define SNDCTL_SEQ_TIMING_ENABLE   __SIO ('Q', 23) /* Enable incoming MIDI timing messages */
 
#define SNDCTL_SEQ_ACTSENSE_ENABLE   __SIO ('Q', 24) /* Enable incoming active sensing messages */
 
#define SNDCTL_SEQ_RT_ENABLE   __SIO ('Q', 25) /* Enable other incoming realtime messages */
 
#define SNDCTL_TMR_TIMEBASE   __SIOWR('T', 1, int)
 
#define SNDCTL_TMR_START   __SIO ('T', 2)
 
#define SNDCTL_TMR_STOP   __SIO ('T', 3)
 
#define SNDCTL_TMR_CONTINUE   __SIO ('T', 4)
 
#define SNDCTL_TMR_TEMPO   __SIOWR('T', 5, int)
 
#define SNDCTL_TMR_SOURCE   __SIOWR('T', 6, int)
 
#define TMR_INTERNAL   0x00000001
 
#define TMR_EXTERNAL   0x00000002
 
#define TMR_MODE_MIDI   0x00000010
 
#define TMR_MODE_FSK   0x00000020
 
#define TMR_MODE_CLS   0x00000040
 
#define TMR_MODE_SMPTE   0x00000080
 
#define SNDCTL_TMR_METRONOME   __SIOW ('T', 7, int)
 
#define SNDCTL_TMR_SELECT   __SIOW ('T', 8, int)
 
#define _PATCHKEY(id)   ((id<<8)|0xfd)
 
#define AFMT_S16_NE   AFMT_S16_LE
 
#define AFMT_U16_NE   AFMT_U16_LE
 
#define AFMT_S32_NE   AFMT_S32_LE
 
#define AFMT_S24_NE   AFMT_S24_LE
 
#define AFMT_S16_OE   AFMT_S16_BE
 
#define AFMT_S32_OE   AFMT_S32_BE
 
#define AFMT_S24_OE   AFMT_S24_BE
 
#define WAVE_PATCH   _PATCHKEY(0x04)
 
#define GUS_PATCH   WAVE_PATCH
 
#define WAVEFRONT_PATCH   _PATCHKEY(0x06)
 
#define WAVE_16_BITS   0x01 /* bit 0 = 8 or 16 bit wave data. */
 
#define WAVE_UNSIGNED   0x02 /* bit 1 = Signed - Unsigned data. */
 
#define WAVE_LOOPING   0x04 /* bit 2 = looping enabled-1. */
 
#define WAVE_BIDIR_LOOP   0x08 /* bit 3 = Set is bidirectional looping. */
 
#define WAVE_LOOP_BACK   0x10 /* bit 4 = Set is looping backward. */
 
#define WAVE_SUSTAIN_ON   0x20 /* bit 5 = Turn sustaining on. (Env. pts. 3) */
 
#define WAVE_ENVELOPES   0x40 /* bit 6 = Enable envelopes - 1 */
 
#define WAVE_FAST_RELEASE   0x80 /* bit 7 = Shut off immediately after note off */
 
#define WAVE_VIBRATO   0x00010000 /* The vibrato info is valid */
 
#define WAVE_TREMOLO   0x00020000 /* The tremolo info is valid */
 
#define WAVE_SCALE   0x00040000 /* The scaling info is valid */
 
#define WAVE_FRACTIONS   0x00080000 /* Fraction information is valid */
 
#define WAVE_ROM   0x40000000 /* For future use */
 
#define WAVE_MULAW   0x20000000 /* For future use */
 
#define SYSEX_PATCH   _PATCHKEY(0x05)
 
#define MAUI_PATCH   _PATCHKEY(0x06)
 
#define SEQ_NOTEOFF   0
 
#define SEQ_FMNOTEOFF   SEQ_NOTEOFF /* Just old name */
 
#define SEQ_NOTEON   1
 
#define SEQ_FMNOTEON   SEQ_NOTEON
 
#define SEQ_WAIT   TMR_WAIT_ABS
 
#define SEQ_PGMCHANGE   3
 
#define SEQ_FMPGMCHANGE   SEQ_PGMCHANGE
 
#define SEQ_SYNCTIMER   TMR_START
 
#define SEQ_MIDIPUTC   5
 
#define SEQ_DRUMON   6 /*** OBSOLETE ***/
 
#define SEQ_DRUMOFF   7 /*** OBSOLETE ***/
 
#define SEQ_ECHO   TMR_ECHO /* For synching programs with output */
 
#define SEQ_AFTERTOUCH   9
 
#define SEQ_CONTROLLER   10
 
#define SEQ_BALANCE   11
 
#define SEQ_VOLMODE   12
 
#define CTL_BANK_SELECT   0x00
 
#define CTL_MODWHEEL   0x01
 
#define CTL_BREATH   0x02
 
#define CTL_FOOT   0x04
 
#define CTL_PORTAMENTO_TIME   0x05
 
#define CTL_DATA_ENTRY   0x06
 
#define CTL_MAIN_VOLUME   0x07
 
#define CTL_BALANCE   0x08
 
#define CTL_PAN   0x0a
 
#define CTL_EXPRESSION   0x0b
 
#define CTL_GENERAL_PURPOSE1   0x10
 
#define CTL_GENERAL_PURPOSE2   0x11
 
#define CTL_GENERAL_PURPOSE3   0x12
 
#define CTL_GENERAL_PURPOSE4   0x13
 
#define CTL_DAMPER_PEDAL   0x40
 
#define CTL_SUSTAIN   0x40 /* Alias */
 
#define CTL_HOLD   0x40 /* Alias */
 
#define CTL_PORTAMENTO   0x41
 
#define CTL_SOSTENUTO   0x42
 
#define CTL_SOFT_PEDAL   0x43
 
#define CTL_HOLD2   0x45
 
#define CTL_GENERAL_PURPOSE5   0x50
 
#define CTL_GENERAL_PURPOSE6   0x51
 
#define CTL_GENERAL_PURPOSE7   0x52
 
#define CTL_GENERAL_PURPOSE8   0x53
 
#define CTL_EXT_EFF_DEPTH   0x5b
 
#define CTL_TREMOLO_DEPTH   0x5c
 
#define CTL_CHORUS_DEPTH   0x5d
 
#define CTL_DETUNE_DEPTH   0x5e
 
#define CTL_CELESTE_DEPTH   0x5e /* Alias for the above one */
 
#define CTL_PHASER_DEPTH   0x5f
 
#define CTL_DATA_INCREMENT   0x60
 
#define CTL_DATA_DECREMENT   0x61
 
#define CTL_NONREG_PARM_NUM_LSB   0x62
 
#define CTL_NONREG_PARM_NUM_MSB   0x63
 
#define CTL_REGIST_PARM_NUM_LSB   0x64
 
#define CTL_REGIST_PARM_NUM_MSB   0x65
 
#define CTRL_PITCH_BENDER   255
 
#define CTRL_PITCH_BENDER_RANGE   254
 
#define CTRL_EXPRESSION   253 /* Obsolete */
 
#define CTRL_MAIN_VOLUME   252 /* Obsolete */
 
#define VOL_METHOD_ADAGIO   1
 
#define VOL_METHOD_LINEAR   2
 
#define SEQ_FULLSIZE   0xfd /* Long events */
 
#define SEQ_PRIVATE   0xfe /* Low level HW dependent events (8 bytes) */
 
#define SEQ_EXTENDED   0xff /* Extended events (8 bytes) OBSOLETE */
 
#define FM_PATCH   _PATCHKEY(0x01)
 
#define OPL3_PATCH   _PATCHKEY(0x03)
 
#define SYNTH_TYPE_FM   0
 
#define SYNTH_TYPE_SAMPLE   1
 
#define SYNTH_TYPE_MIDI   2 /* Midi interface */
 
#define FM_TYPE_ADLIB   0x00
 
#define FM_TYPE_OPL3   0x01
 
#define MIDI_TYPE_MPU401   0x401
 
#define SAMPLE_TYPE_BASIC   0x10
 
#define SAMPLE_TYPE_GUS   SAMPLE_TYPE_BASIC
 
#define SAMPLE_TYPE_WAVEFRONT   0x11
 
#define SYNTH_CAP_PERCMODE   0x00000001 /* No longer used */
 
#define SYNTH_CAP_OPL3   0x00000002 /* Set if OPL3 supported */
 
#define SYNTH_CAP_INPUT   0x00000004 /* Input (MIDI) device */
 
#define MIDI_CAP_MPU401   1 /* MPU-401 intelligent mode */
 
#define SNDCTL_MIDI_PRETIME   __SIOWR('m', 0, int)
 
#define SNDCTL_MIDI_MPUMODE   __SIOWR('m', 1, int)
 
#define SNDCTL_MIDI_MPUCMD   __SIOWR('m', 2, mpu_command_rec)
 
#define SNDCTL_DSP_RESET   __SIO ('P', 0)
 
#define SNDCTL_DSP_SYNC   __SIO ('P', 1)
 
#define SNDCTL_DSP_SPEED   __SIOWR('P', 2, int)
 
#define SNDCTL_DSP_STEREO   __SIOWR('P', 3, int)
 
#define SNDCTL_DSP_GETBLKSIZE   __SIOWR('P', 4, int)
 
#define SNDCTL_DSP_SAMPLESIZE   SNDCTL_DSP_SETFMT
 
#define SNDCTL_DSP_CHANNELS   __SIOWR('P', 6, int)
 
#define SNDCTL_DSP_POST   __SIO ('P', 8)
 
#define SNDCTL_DSP_SUBDIVIDE   __SIOWR('P', 9, int)
 
#define SNDCTL_DSP_SETFRAGMENT   __SIOWR('P',10, int)
 
#define SNDCTL_DSP_GETFMTS   __SIOR ('P',11, int) /* Returns a mask */
 
#define SNDCTL_DSP_SETFMT   __SIOWR('P',5, int) /* Selects ONE fmt */
 
#define AFMT_QUERY   0x00000000 /* Return current fmt */
 
#define AFMT_MU_LAW   0x00000001
 
#define AFMT_A_LAW   0x00000002
 
#define AFMT_IMA_ADPCM   0x00000004
 
#define AFMT_U8   0x00000008
 
#define AFMT_S16_LE   0x00000010 /* Little endian signed 16 */
 
#define AFMT_S16_BE   0x00000020 /* Big endian signed 16 */
 
#define AFMT_S8   0x00000040
 
#define AFMT_U16_LE   0x00000080 /* Little endian U16 */
 
#define AFMT_U16_BE   0x00000100 /* Big endian U16 */
 
#define AFMT_MPEG   0x00000200 /* MPEG (2) audio */
 
#define AFMT_AC3   0x00000400
 
#define AFMT_VORBIS   0x00000800
 
#define AFMT_S32_LE   0x00001000
 
#define AFMT_S32_BE   0x00002000
 
#define AFMT_FLOAT   0x00004000
 
#define AFMT_S24_LE   0x00008000
 
#define AFMT_S24_BE   0x00010000
 
#define AFMT_SPDIF_RAW   0x00020000
 
#define AFMT_S24_PACKED   0x00040000
 
#define SNDCTL_DSP_GETOSPACE   __SIOR ('P',12, audio_buf_info)
 
#define SNDCTL_DSP_GETISPACE   __SIOR ('P',13, audio_buf_info)
 
#define SNDCTL_DSP_NONBLOCK   __SIO ('P',14) /* Obsolete. Not supported */
 
#define SNDCTL_DSP_GETCAPS   __SIOR ('P',15, int)
 
#define DSP_CAP_REVISION   0x000000ff /* Bits for revision level (0 to 255) */
 
#define DSP_CAP_DUPLEX   0x00000100 /* Full duplex record/playback */
 
#define DSP_CAP_REALTIME   0x00000200 /* Not in use */
 
#define DSP_CAP_BATCH   0x00000400 /* Device has some kind of */
 
#define DSP_CAP_COPROC   0x00000800 /* Has a coprocessor */
 
#define DSP_CAP_TRIGGER   0x00001000 /* Supports SETTRIGGER */
 
#define DSP_CAP_MMAP   0x00002000 /* Supports mmap() */
 
#define DSP_CAP_MULTI   0x00004000 /* Supports multiple open */
 
#define DSP_CAP_BIND   0x00008000 /* Supports binding to front/rear/center/lfe */
 
#define DSP_CAP_INPUT   0x00010000 /* Supports recording */
 
#define DSP_CAP_OUTPUT   0x00020000 /* Supports playback */
 
#define DSP_CAP_VIRTUAL   0x00040000 /* Virtuial device */
 
#define DSP_CAP_ANALOGOUT   0x00100000
 
#define DSP_CAP_ANALOGIN   0x00200000
 
#define DSP_CAP_DIGITALOUT   0x00400000
 
#define DSP_CAP_DIGITALIN   0x00800000
 
#define DSP_CAP_ADMASK   0x00f00000
 
#define DSP_CAP_SHADOW   0x01000000 /* "Shadow" device */
 
#define DSP_CH_MASK   0x06000000 /* Mask */
 
#define DSP_CH_ANY   0x00000000 /* No preferred mode */
 
#define DSP_CH_MONO   0x02000000
 
#define DSP_CH_STEREO   0x04000000
 
#define DSP_CH_MULTI   0x06000000 /* More than two channels */
 
#define DSP_CAP_SLAVE   0x08000000 /* "Slave" device */
 
#define DSP_CAP_FREERATE   0x10000000
 
#define SNDCTL_DSP_GETTRIGGER   __SIOR ('P',16, int)
 
#define SNDCTL_DSP_SETTRIGGER   __SIOW ('P',16, int)
 
#define PCM_ENABLE_INPUT   0x00000001
 
#define PCM_ENABLE_OUTPUT   0x00000002
 
#define SNDCTL_DSP_GETIPTR   __SIOR ('P',17, count_info)
 
#define SNDCTL_DSP_GETOPTR   __SIOR ('P',18, count_info)
 
#define SNDCTL_DSP_MAPINBUF   __SIOR ('P', 19, buffmem_desc)
 
#define SNDCTL_DSP_MAPOUTBUF   __SIOR ('P', 20, buffmem_desc)
 
#define SNDCTL_DSP_SETSYNCRO   __SIO ('P', 21)
 
#define SNDCTL_DSP_SETDUPLEX   __SIO ('P', 22)
 
#define SNDCTL_DSP_PROFILE   __SIOW ('P', 23, int)
 
#define APF_NORMAL   0 /* Normal applications */
 
#define APF_NETWORK   1 /* Underruns probably caused by an "external" delay */
 
#define APF_CPUINTENS   2 /* Underruns probably caused by "overheating" the CPU */
 
#define SNDCTL_DSP_GETODELAY   __SIOR ('P', 23, int)
 
#define SNDCTL_DSP_GETOUTVOL   __SIOR ('P', 24, int)
 
#define SNDCTL_DSP_SETOUTVOL   __SIOWR('P', 24, int)
 
#define SNDCTL_DSP_GETERROR   __SIOR ('P', 25, audio_errinfo)
 
#define DIG_CBITIN_NONE   0x00000000
 
#define DIG_CBITIN_LIMITED   0x00000001
 
#define DIG_CBITIN_DATA   0x00000002
 
#define DIG_CBITIN_BYTE0   0x00000004
 
#define DIG_CBITIN_FULL   0x00000008
 
#define DIG_CBITIN_MASK   0x0000000f
 
#define DIG_CBITOUT_NONE   0x00000000
 
#define DIG_CBITOUT_LIMITED   0x00000010
 
#define DIG_CBITOUT_BYTE0   0x00000020
 
#define DIG_CBITOUT_FULL   0x00000040
 
#define DIG_CBITOUT_DATA   0x00000080
 
#define DIG_CBITOUT_MASK   0x000000f0
 
#define DIG_UBITIN   0x00000100
 
#define DIG_UBITOUT   0x00000200
 
#define DIG_VBITOUT   0x00000400
 
#define DIG_OUTRATE   0x00000800
 
#define DIG_INRATE   0x00001000
 
#define DIG_INBITS   0x00002000
 
#define DIG_OUTBITS   0x00004000
 
#define DIG_EXACT   0x00010000
 
#define DIG_PRO   0x00020000
 
#define DIG_CONSUMER   0x00040000
 
#define DIG_PASSTHROUGH   0x00080000
 
#define DIG_OUTSEL   0x00100000
 
#define VAL_CBITIN   0x00000001
 
#define VAL_UBITIN   0x00000002
 
#define VAL_CBITOUT   0x00000004
 
#define VAL_UBITOUT   0x00000008
 
#define VAL_ISTATUS   0x00000010
 
#define VAL_IRATE   0x00000020
 
#define VAL_ORATE   0x00000040
 
#define VAL_INBITS   0x00000080
 
#define VAL_OUTBITS   0x00000100
 
#define VAL_REQUEST   0x00000200
 
#define VAL_OUTSEL   0x00000400
 
#define VAL_OUTMASK   (VAL_CBITOUT|VAL_UBITOUT|VAL_ORATE|VAL_OUTBITS|VAL_OUTSEL)
 
#define SPD_RQ_PASSTHROUGH   1
 
#define OUTSEL_DIGITAL   1
 
#define OUTSEL_ANALOG   2
 
#define OUTSEL_BOTH   (OUTSEL_DIGITAL|OUTSEL_ANALOG)
 
#define IND_UNKNOWN   0
 
#define IND_AUDIO   1
 
#define IND_DATA   2
 
#define LOCK_NOT_INDICATED   0
 
#define LOCK_UNLOCKED   1
 
#define LOCK_LOCKED   2
 
#define IN_QUAL_NOT_INDICATED   0
 
#define IN_QUAL_POOR   1
 
#define IN_QUAL_GOOD   2
 
#define VBIT_NOT_INDICATED   0
 
#define VBIT_OFF   1
 
#define VBIT_ON   2
 
#define INERR_CRC   0x0001
 
#define INERR_QCODE_CRC   0x0002
 
#define INERR_PARITY   0x0004
 
#define INERR_BIPHASE   0x0008
 
#define SNDCTL_DSP_READCTL   __SIOWR('P', 26, oss_digital_control)
 
#define SNDCTL_DSP_WRITECTL   __SIOWR('P', 27, oss_digital_control)
 
#define SNDCTL_DSP_SYNCGROUP   __SIOWR('P', 28, oss_syncgroup)
 
#define SNDCTL_DSP_SYNCSTART   __SIOW ('P', 29, int)
 
#define SNDCTL_DSP_COOKEDMODE   __SIOW ('P', 30, int)
 
#define SNDCTL_DSP_SILENCE   __SIO ('P', 31)
 
#define SNDCTL_DSP_SKIP   __SIO ('P', 32)
 
#define SNDCTL_DSP_RESET_INPUT   __SIO ('P', 33)
 
#define SNDCTL_DSP_RESET_OUTPUT   __SIO ('P', 34)
 
#define SNDCTL_DSP_LOW_WATER   __SIOW ('P', 34, int)
 
#define SNDCTL_DSP_CURRENT_IPTR   __SIOR ('P', 35, oss_count_t)
 
#define SNDCTL_DSP_CURRENT_OPTR   __SIOR ('P', 36, oss_count_t)
 
#define SNDCTL_DSP_GET_RECSRC_NAMES   __SIOR ('P', 37, oss_mixer_enuminfo)
 
#define SNDCTL_DSP_GET_RECSRC   __SIOR ('P', 38, int)
 
#define SNDCTL_DSP_SET_RECSRC   __SIOWR('P', 38, int)
 
#define SNDCTL_DSP_GET_PLAYTGT_NAMES   __SIOR ('P', 39, oss_mixer_enuminfo)
 
#define SNDCTL_DSP_GET_PLAYTGT   __SIOR ('P', 40, int)
 
#define SNDCTL_DSP_SET_PLAYTGT   __SIOWR('P', 40, int)
 
#define SNDCTL_DSP_GETCHANNELMASK   __SIOWR('P', 64, int)
 
#define SNDCTL_DSP_BIND_CHANNEL   __SIOWR('P', 65, int)
 
#define DSP_BIND_QUERY   0x00000000
 
#define DSP_BIND_FRONT   0x00000001
 
#define DSP_BIND_SURR   0x00000002
 
#define DSP_BIND_CENTER_LFE   0x00000004
 
#define DSP_BIND_HANDSET   0x00000008
 
#define DSP_BIND_MIC   0x00000010
 
#define DSP_BIND_MODEM1   0x00000020
 
#define DSP_BIND_MODEM2   0x00000040
 
#define DSP_BIND_I2S   0x00000080
 
#define DSP_BIND_SPDIF   0x00000100
 
#define DSP_BIND_REAR   0x00000200
 
#define SOUND_MIXER_NRDEVICES   28
 
#define SOUND_MIXER_VOLUME   0
 
#define SOUND_MIXER_BASS   1
 
#define SOUND_MIXER_TREBLE   2
 
#define SOUND_MIXER_SYNTH   3
 
#define SOUND_MIXER_PCM   4
 
#define SOUND_MIXER_SPEAKER   5
 
#define SOUND_MIXER_LINE   6
 
#define SOUND_MIXER_MIC   7
 
#define SOUND_MIXER_CD   8
 
#define SOUND_MIXER_IMIX   9 /* Recording monitor */
 
#define SOUND_MIXER_ALTPCM   10
 
#define SOUND_MIXER_RECLEV   11 /* Recording level */
 
#define SOUND_MIXER_IGAIN   12 /* Input gain */
 
#define SOUND_MIXER_OGAIN   13 /* Output gain */
 
#define SOUND_MIXER_LINE1   14 /* Input source 1 (aux1) */
 
#define SOUND_MIXER_LINE2   15 /* Input source 2 (aux2) */
 
#define SOUND_MIXER_LINE3   16 /* Input source 3 (line) */
 
#define SOUND_MIXER_DIGITAL1   17 /* Digital I/O 1 */
 
#define SOUND_MIXER_DIGITAL2   18 /* Digital I/O 2 */
 
#define SOUND_MIXER_DIGITAL3   19 /* Digital I/O 3 */
 
#define SOUND_MIXER_PHONE   20 /* Phone */
 
#define SOUND_MIXER_MONO   21 /* Mono Output */
 
#define SOUND_MIXER_VIDEO   22 /* Video/TV (audio) in */
 
#define SOUND_MIXER_RADIO   23 /* Radio in */
 
#define SOUND_MIXER_DEPTH   24 /* Surround depth */
 
#define SOUND_MIXER_REARVOL   25 /* Rear/Surround speaker vol */
 
#define SOUND_MIXER_CENTERVOL   26 /* Center/LFE speaker vol */
 
#define SOUND_MIXER_SURRVOL   27 /* Mid-Surround (8speaker) vol */
 
#define SOUND_ONOFF_MIN   28
 
#define SOUND_ONOFF_MAX   30
 
#define SOUND_MIXER_NONE   31
 
#define SOUND_MIXER_ENHANCE   SOUND_MIXER_NONE
 
#define SOUND_MIXER_MUTE   SOUND_MIXER_NONE
 
#define SOUND_MIXER_LOUD   SOUND_MIXER_NONE
 
#define SOUND_DEVICE_LABELS
 
#define SOUND_DEVICE_NAMES
 
#define SOUND_MIXER_RECSRC   0xff /* Arg contains a bit for each recording source */
 
#define SOUND_MIXER_DEVMASK   0xfe /* Arg contains a bit for each supported device */
 
#define SOUND_MIXER_RECMASK   0xfd /* Arg contains a bit for each supported recording source */
 
#define SOUND_MIXER_CAPS   0xfc
 
#define SOUND_CAP_EXCL_INPUT   0x00000001 /* Only one recording source at a time */
 
#define SOUND_CAP_LAYOUT_B   0x00000002 /* For internal use only */
 
#define SOUND_CAP_NOLEGACY   0x00000004 /* For internal use only */
 
#define SOUND_CAP_NORECSRC   0x00000008
 
#define SOUND_MIXER_STEREODEVS   0xfb /* Mixer channels supporting stereo */
 
#define SOUND_MIXER_OUTSRC   0xfa /* Arg contains a bit for each input source to output */
 
#define SOUND_MIXER_OUTMASK   0xf9 /* Arg contains a bit for each supported input source to output */
 
#define SOUND_MASK_VOLUME   (1 << SOUND_MIXER_VOLUME)
 
#define SOUND_MASK_BASS   (1 << SOUND_MIXER_BASS)
 
#define SOUND_MASK_TREBLE   (1 << SOUND_MIXER_TREBLE)
 
#define SOUND_MASK_SYNTH   (1 << SOUND_MIXER_SYNTH)
 
#define SOUND_MASK_PCM   (1 << SOUND_MIXER_PCM)
 
#define SOUND_MASK_SPEAKER   (1 << SOUND_MIXER_SPEAKER)
 
#define SOUND_MASK_LINE   (1 << SOUND_MIXER_LINE)
 
#define SOUND_MASK_MIC   (1 << SOUND_MIXER_MIC)
 
#define SOUND_MASK_CD   (1 << SOUND_MIXER_CD)
 
#define SOUND_MASK_IMIX   (1 << SOUND_MIXER_IMIX)
 
#define SOUND_MASK_ALTPCM   (1 << SOUND_MIXER_ALTPCM)
 
#define SOUND_MASK_RECLEV   (1 << SOUND_MIXER_RECLEV)
 
#define SOUND_MASK_IGAIN   (1 << SOUND_MIXER_IGAIN)
 
#define SOUND_MASK_OGAIN   (1 << SOUND_MIXER_OGAIN)
 
#define SOUND_MASK_LINE1   (1 << SOUND_MIXER_LINE1)
 
#define SOUND_MASK_LINE2   (1 << SOUND_MIXER_LINE2)
 
#define SOUND_MASK_LINE3   (1 << SOUND_MIXER_LINE3)
 
#define SOUND_MASK_DIGITAL1   (1 << SOUND_MIXER_DIGITAL1)
 
#define SOUND_MASK_DIGITAL2   (1 << SOUND_MIXER_DIGITAL2)
 
#define SOUND_MASK_DIGITAL3   (1 << SOUND_MIXER_DIGITAL3)
 
#define SOUND_MASK_MONO   (1 << SOUND_MIXER_MONO)
 
#define SOUND_MASK_PHONE   (1 << SOUND_MIXER_PHONE)
 
#define SOUND_MASK_RADIO   (1 << SOUND_MIXER_RADIO)
 
#define SOUND_MASK_VIDEO   (1 << SOUND_MIXER_VIDEO)
 
#define SOUND_MASK_DEPTH   (1 << SOUND_MIXER_DEPTH)
 
#define SOUND_MASK_MONITOR   (1 << SOUND_MIXER_MONITOR)
 
#define SOUND_MASK_REARVOL   (1 << SOUND_MIXER_REARVOL)
 
#define SOUND_MASK_CENTERVOL   (1 << SOUND_MIXER_CENTERVOL)
 
#define SOUND_MASK_SURRVOL   (1 << SOUND_MIXER_SURRVOL)
 
#define SOUND_MASK_MUTE   (1 << SOUND_MIXER_MUTE)
 
#define SOUND_MASK_ENHANCE   (1 << SOUND_MIXER_ENHANCE)
 
#define SOUND_MASK_LOUD   (1 << SOUND_MIXER_LOUD)
 
#define MIXER_READ(dev)   __SIOR('M', dev, int)
 
#define SOUND_MIXER_READ_VOLUME   MIXER_READ(SOUND_MIXER_VOLUME)
 
#define SOUND_MIXER_READ_BASS   MIXER_READ(SOUND_MIXER_BASS)
 
#define SOUND_MIXER_READ_TREBLE   MIXER_READ(SOUND_MIXER_TREBLE)
 
#define SOUND_MIXER_READ_SYNTH   MIXER_READ(SOUND_MIXER_SYNTH)
 
#define SOUND_MIXER_READ_PCM   MIXER_READ(SOUND_MIXER_PCM)
 
#define SOUND_MIXER_READ_SPEAKER   MIXER_READ(SOUND_MIXER_SPEAKER)
 
#define SOUND_MIXER_READ_LINE   MIXER_READ(SOUND_MIXER_LINE)
 
#define SOUND_MIXER_READ_MIC   MIXER_READ(SOUND_MIXER_MIC)
 
#define SOUND_MIXER_READ_CD   MIXER_READ(SOUND_MIXER_CD)
 
#define SOUND_MIXER_READ_IMIX   MIXER_READ(SOUND_MIXER_IMIX)
 
#define SOUND_MIXER_READ_ALTPCM   MIXER_READ(SOUND_MIXER_ALTPCM)
 
#define SOUND_MIXER_READ_RECLEV   MIXER_READ(SOUND_MIXER_RECLEV)
 
#define SOUND_MIXER_READ_IGAIN   MIXER_READ(SOUND_MIXER_IGAIN)
 
#define SOUND_MIXER_READ_OGAIN   MIXER_READ(SOUND_MIXER_OGAIN)
 
#define SOUND_MIXER_READ_LINE1   MIXER_READ(SOUND_MIXER_LINE1)
 
#define SOUND_MIXER_READ_LINE2   MIXER_READ(SOUND_MIXER_LINE2)
 
#define SOUND_MIXER_READ_LINE3   MIXER_READ(SOUND_MIXER_LINE3)
 
#define SOUND_MIXER_READ_MUTE   MIXER_READ(SOUND_MIXER_MUTE)
 
#define SOUND_MIXER_READ_ENHANCE   MIXER_READ(SOUND_MIXER_ENHANCE)
 
#define SOUND_MIXER_READ_LOUD   MIXER_READ(SOUND_MIXER_LOUD)
 
#define SOUND_MIXER_READ_RECSRC   MIXER_READ(SOUND_MIXER_RECSRC)
 
#define SOUND_MIXER_READ_DEVMASK   MIXER_READ(SOUND_MIXER_DEVMASK)
 
#define SOUND_MIXER_READ_RECMASK   MIXER_READ(SOUND_MIXER_RECMASK)
 
#define SOUND_MIXER_READ_STEREODEVS   MIXER_READ(SOUND_MIXER_STEREODEVS)
 
#define SOUND_MIXER_READ_CAPS   MIXER_READ(SOUND_MIXER_CAPS)
 
#define MIXER_WRITE(dev)   __SIOWR('M', dev, int)
 
#define SOUND_MIXER_WRITE_VOLUME   MIXER_WRITE(SOUND_MIXER_VOLUME)
 
#define SOUND_MIXER_WRITE_BASS   MIXER_WRITE(SOUND_MIXER_BASS)
 
#define SOUND_MIXER_WRITE_TREBLE   MIXER_WRITE(SOUND_MIXER_TREBLE)
 
#define SOUND_MIXER_WRITE_SYNTH   MIXER_WRITE(SOUND_MIXER_SYNTH)
 
#define SOUND_MIXER_WRITE_PCM   MIXER_WRITE(SOUND_MIXER_PCM)
 
#define SOUND_MIXER_WRITE_SPEAKER   MIXER_WRITE(SOUND_MIXER_SPEAKER)
 
#define SOUND_MIXER_WRITE_LINE   MIXER_WRITE(SOUND_MIXER_LINE)
 
#define SOUND_MIXER_WRITE_MIC   MIXER_WRITE(SOUND_MIXER_MIC)
 
#define SOUND_MIXER_WRITE_CD   MIXER_WRITE(SOUND_MIXER_CD)
 
#define SOUND_MIXER_WRITE_IMIX   MIXER_WRITE(SOUND_MIXER_IMIX)
 
#define SOUND_MIXER_WRITE_ALTPCM   MIXER_WRITE(SOUND_MIXER_ALTPCM)
 
#define SOUND_MIXER_WRITE_RECLEV   MIXER_WRITE(SOUND_MIXER_RECLEV)
 
#define SOUND_MIXER_WRITE_IGAIN   MIXER_WRITE(SOUND_MIXER_IGAIN)
 
#define SOUND_MIXER_WRITE_OGAIN   MIXER_WRITE(SOUND_MIXER_OGAIN)
 
#define SOUND_MIXER_WRITE_LINE1   MIXER_WRITE(SOUND_MIXER_LINE1)
 
#define SOUND_MIXER_WRITE_LINE2   MIXER_WRITE(SOUND_MIXER_LINE2)
 
#define SOUND_MIXER_WRITE_LINE3   MIXER_WRITE(SOUND_MIXER_LINE3)
 
#define SOUND_MIXER_WRITE_MUTE   MIXER_WRITE(SOUND_MIXER_MUTE)
 
#define SOUND_MIXER_WRITE_ENHANCE   MIXER_WRITE(SOUND_MIXER_ENHANCE)
 
#define SOUND_MIXER_WRITE_LOUD   MIXER_WRITE(SOUND_MIXER_LOUD)
 
#define SOUND_MIXER_WRITE_RECSRC   MIXER_WRITE(SOUND_MIXER_RECSRC)
 
#define SOUND_MIXER_INFO   __SIOR ('M', 101, mixer_info)
 
#define SOUND_OLD_MIXER_INFO   __SIOR ('M', 101, _old_mixer_info)
 
#define SOUND_MIXER_ACCESS   __SIOWR('M', 102, mixer_record)
 
#define SOUND_MIXER_AGC   _SIOWR('M', 103, int)
 
#define SOUND_MIXER_3DSE   _SIOWR('M', 104, int)
 
#define SOUND_MIXER_PRIVATE1   __SIOWR('M', 111, int)
 
#define SOUND_MIXER_PRIVATE2   __SIOWR('M', 112, int)
 
#define SOUND_MIXER_PRIVATE3   __SIOWR('M', 113, int)
 
#define SOUND_MIXER_PRIVATE4   __SIOWR('M', 114, int)
 
#define SOUND_MIXER_PRIVATE5   __SIOWR('M', 115, int)
 
#define SOUND_MIXER_GETLEVELS   __SIOWR('M', 116, mixer_vol_table)
 
#define SOUND_MIXER_SETLEVELS   __SIOWR('M', 117, mixer_vol_table)
 
#define OSS_GETVERSION   __SIOR ('M', 118, int)
 
#define SOUND_MIXER_READ_RECGAIN   __SIOR ('M', 119, int)
 
#define SOUND_MIXER_WRITE_RECGAIN   __SIOWR('M', 119, int)
 
#define SOUND_MIXER_READ_MONGAIN   __SIOR ('M', 120, int)
 
#define SOUND_MIXER_WRITE_MONGAIN   __SIOWR('M', 120, int)
 
#define SOUND_MIXER_RESERVED   __SIOWR('M', 121, oss_reserved_t)
 
#define SYSINFO_FILL_SIZE   256
 
#define MIXT_DEVROOT   0 /* Device root entry */
 
#define MIXT_GROUP   1 /* Controller group */
 
#define MIXT_ONOFF   2 /* OFF (0) or ON (1) */
 
#define MIXT_ENUM   3 /* Enumerated (0 to maxvalue) */
 
#define MIXT_MONOSLIDER   4 /* Mono slider (0 to 100) */
 
#define MIXT_STEREOSLIDER   5 /* Stereo slider (dual 0 to 100) */
 
#define MIXT_MESSAGE   6 /* (Readable) textual message */
 
#define MIXT_MONOVU   7 /* VU meter value (mono) */
 
#define MIXT_STEREOVU   8 /* VU meter value (stereo) */
 
#define MIXT_MONOPEAK   9 /* VU meter peak value (mono) */
 
#define MIXT_STEREOPEAK   10 /* VU meter peak value (stereo) */
 
#define MIXT_RADIOGROUP   11 /* Radio button group */
 
#define MIXT_MARKER   12 /* Separator between normal and extension entries */
 
#define MIXT_VALUE   13 /* Decimal value entry */
 
#define MIXT_HEXVALUE   14 /* Hexadecimal value entry */
 
#define MIXT_MONODB   15 /* Mono atten. slider (0 to -144) */
 
#define MIXT_STEREODB   16 /* Stereo atten. slider (dual 0 to -144) */
 
#define MIXT_SLIDER   17 /* Slider (mono) with full integer range */
 
#define MIXT_3D   18
 
#define MIXF_READABLE   0x00000001 /* Has readable value */
 
#define MIXF_WRITEABLE   0x00000002 /* Has writeable value */
 
#define MIXF_POLL   0x00000004 /* May change itself */
 
#define MIXF_HZ   0x00000008 /* Herz scale */
 
#define MIXF_STRING   0x00000010 /* Use dynamic extensions for value */
 
#define MIXF_DYNAMIC   0x00000010 /* Supports dynamic extensions */
 
#define OSS_ENUM_MAXVALUE   255
 
#define OPEN_READ   PCM_ENABLE_INPUT
 
#define OPEN_WRITE   PCM_ENABLE_OUTPUT
 
#define OPEN_READWRITE   (OPEN_READ|OPEN_WRITE)
 
#define OSS_SYSINFO   __SIOR ('X', 1, oss_sysinfo)
 
#define SNDCTL_MIX_NRMIX   __SIOR ('X', 2, int)
 
#define SNDCTL_MIX_NREXT   __SIOWR('X', 3, int)
 
#define SNDCTL_MIX_EXTINFO   __SIOWR('X', 4, oss_mixext)
 
#define SNDCTL_MIX_READ   __SIOWR('X', 5, oss_mixer_value)
 
#define SNDCTL_MIX_WRITE   __SIOWR('X', 6, oss_mixer_value)
 
#define SNDCTL_AUDIOINFO   __SIOWR('X', 7, oss_audioinfo)
 
#define SNDCTL_MIX_ENUMINFO   __SIOWR('X', 8, oss_mixer_enuminfo)
 
#define EV_SEQ_LOCAL   0x80
 
#define EV_TIMING   0x81
 
#define EV_CHN_COMMON   0x92
 
#define EV_CHN_VOICE   0x93
 
#define EV_SYSEX   0x94
 
#define EV_SYSTEM   0x95 /* MIDI system and real time messages (input only) */
 
#define MIDI_NOTEOFF   0x80
 
#define MIDI_NOTEON   0x90
 
#define MIDI_KEY_PRESSURE   0xA0
 
#define MIDI_CTL_CHANGE   0xB0
 
#define MIDI_PGM_CHANGE   0xC0
 
#define MIDI_CHN_PRESSURE   0xD0
 
#define MIDI_PITCH_BEND   0xE0
 
#define MIDI_SYSTEM_PREFIX   0xF0
 
#define TMR_WAIT_REL   1 /* Time relative to the prev time */
 
#define TMR_WAIT_ABS   2 /* Absolute time since TMR_START */
 
#define TMR_STOP   3
 
#define TMR_START   4
 
#define TMR_CONTINUE   5
 
#define TMR_TEMPO   6
 
#define TMR_ECHO   8
 
#define TMR_CLOCK   9 /* MIDI clock */
 
#define TMR_SPP   10 /* Song position pointer */
 
#define TMR_TIMESIG   11 /* Time signature */
 
#define LOCL_STARTAUDIO   1
 
#define LOCL_STARTAUDIO2   2
 
#define LOCL_STARTAUDIO3   3
 
#define LOCL_STARTAUDIO4   4
 
#define SEQ_DECLAREBUF()   SEQ_USE_EXTBUF()
 
#define SEQ_PM_DEFINES   int __foo_bar___
 
#define SEQ_LOAD_GMINSTR(dev, instr)
 
#define SEQ_LOAD_GMDRUM(dev, drum)
 
#define SEQ_USE_EXTBUF()
 
#define SEQ_DEFINEBUF(len)   unsigned char _seqbuf[len]; int _seqbuflen = len;int _seqbufptr = 0
 
#define _SEQ_NEEDBUF(len)   if ((_seqbufptr+(len)) > _seqbuflen) seqbuf_dump()
 
#define _SEQ_ADVBUF(len)   _seqbufptr += len
 
#define SEQ_DUMPBUF   seqbuf_dump
 
#define SEQ_VOLUME_MODE(dev, mode)
 
#define _CHN_VOICE(dev, event, chn, note, parm)
 
#define SEQ_START_NOTE(dev, chn, note, vol)   _CHN_VOICE(dev, MIDI_NOTEON, chn, note, vol)
 
#define SEQ_STOP_NOTE(dev, chn, note, vol)   _CHN_VOICE(dev, MIDI_NOTEOFF, chn, note, vol)
 
#define SEQ_KEY_PRESSURE(dev, chn, note, pressure)   _CHN_VOICE(dev, MIDI_KEY_PRESSURE, chn, note, pressure)
 
#define _CHN_COMMON(dev, event, chn, p1, p2, w14)
 
#define SEQ_SYSEX(dev, buf, len)
 
#define SEQ_CHN_PRESSURE(dev, chn, pressure)   _CHN_COMMON(dev, MIDI_CHN_PRESSURE, chn, pressure, 0, 0)
 
#define SEQ_SET_PATCH   SEQ_PGM_CHANGE
 
#define SEQ_PGM_CHANGE(dev, chn, patch)   _CHN_COMMON(dev, MIDI_PGM_CHANGE, chn, patch, 0, 0)
 
#define SEQ_CONTROL(dev, chn, controller, value)   _CHN_COMMON(dev, MIDI_CTL_CHANGE, chn, controller, 0, value)
 
#define SEQ_BENDER(dev, chn, value)   _CHN_COMMON(dev, MIDI_PITCH_BEND, chn, 0, 0, value)
 
#define SEQ_V2_X_CONTROL(dev, voice, controller, value)
 
#define SEQ_PITCHBEND(dev, voice, value)   SEQ_V2_X_CONTROL(dev, voice, CTRL_PITCH_BENDER, value)
 
#define SEQ_BENDER_RANGE(dev, voice, value)   SEQ_V2_X_CONTROL(dev, voice, CTRL_PITCH_BENDER_RANGE, value)
 
#define SEQ_EXPRESSION(dev, voice, value)   SEQ_CONTROL(dev, voice, CTL_EXPRESSION, value*128)
 
#define SEQ_MAIN_VOLUME(dev, voice, value)   SEQ_CONTROL(dev, voice, CTL_MAIN_VOLUME, (value*16383)/100)
 
#define SEQ_PANNING(dev, voice, pos)   SEQ_CONTROL(dev, voice, CTL_PAN, (pos+128) / 2)
 
#define _TIMER_EVENT(ev, parm)
 
#define SEQ_START_TIMER()   _TIMER_EVENT(TMR_START, 0)
 
#define SEQ_STOP_TIMER()   _TIMER_EVENT(TMR_STOP, 0)
 
#define SEQ_CONTINUE_TIMER()   _TIMER_EVENT(TMR_CONTINUE, 0)
 
#define SEQ_WAIT_TIME(ticks)   _TIMER_EVENT(TMR_WAIT_ABS, ticks)
 
#define SEQ_DELTA_TIME(ticks)   _TIMER_EVENT(TMR_WAIT_REL, ticks)
 
#define SEQ_ECHO_BACK(key)   _TIMER_EVENT(TMR_ECHO, key)
 
#define SEQ_SET_TEMPO(value)   _TIMER_EVENT(TMR_TEMPO, value)
 
#define SEQ_SONGPOS(pos)   _TIMER_EVENT(TMR_SPP, pos)
 
#define SEQ_TIME_SIGNATURE(sig)   _TIMER_EVENT(TMR_TIMESIG, sig)
 
#define _LOCAL_EVENT(ev, parm)
 
#define SEQ_PLAYAUDIO(devmask)   _LOCAL_EVENT(LOCL_STARTAUDIO, devmask)
 
#define SEQ_PLAYAUDIO2(devmask)   _LOCAL_EVENT(LOCL_STARTAUDIO2, devmask)
 
#define SEQ_PLAYAUDIO3(devmask)   _LOCAL_EVENT(LOCL_STARTAUDIO3, devmask)
 
#define SEQ_PLAYAUDIO4(devmask)   _LOCAL_EVENT(LOCL_STARTAUDIO4, devmask)
 
#define SEQ_MIDIOUT(device, byte)
 
#define SEQ_WRPATCH(patchx, len)
 
#define SEQ_WRPATCH2(patchx, len)   (SEQ_DUMPBUF(), write(seqfd, (char*)(patchx), len))
 
#define osslib_open   open
 
#define osslib_close   close
 
#define osslib_write   write
 
#define osslib_read   read
 
#define osslib_ioctl   ioctl
 

Typedefs

typedef struct synth_control synth_control
 
typedef struct remove_sample remove_sample
 
typedef struct seq_event_rec seq_event_rec
 
typedef unsigned char sbi_instr_data [32]
 
typedef struct audio_buf_info audio_buf_info
 
typedef struct count_info count_info
 
typedef struct buffmem_desc buffmem_desc
 
typedef struct audio_errinfo audio_errinfo
 
typedef struct oss_digital_control oss_digital_control
 
typedef struct oss_syncgroup oss_syncgroup
 
typedef struct mixer_info mixer_info
 
typedef struct _old_mixer_info _old_mixer_info
 
typedef unsigned char mixer_record [128]
 
typedef struct mixer_vol_table mixer_vol_table
 
typedef unsigned char oss_reserved_t [512]
 
typedef struct oss_sysinfo oss_sysinfo
 
typedef struct oss_mixext oss_mixext
 
typedef struct oss_mixext_root oss_mixext_root
 
typedef struct oss_mixer_value oss_mixer_value
 
typedef struct oss_mixer_enuminfo oss_mixer_enuminfo
 
typedef struct oss_audioinfo oss_audioinfo
 

Functions

void seqbuf_dump (void)
 
EXTERNC int OSS_init (int seqfd, int buflen)
 
EXTERNC void OSS_seqbuf_dump (int fd, unsigned char *buf, int buflen)
 
EXTERNC void OSS_seq_advbuf (int len, int fd, unsigned char *buf, int buflen)
 
EXTERNC void OSS_seq_needbuf (int len, int fd, unsigned char *buf, int buflen)
 
EXTERNC void OSS_patch_caching (int dev, int chn, int patch, int fd, unsigned char *buf, int buflen)
 
EXTERNC void OSS_drum_caching (int dev, int chn, int patch, int fd, unsigned char *buf, int buflen)
 
EXTERNC void OSS_write_patch (int fd, unsigned char *buf, int len)
 
EXTERNC int OSS_write_patch2 (int fd, unsigned char *buf, int len)
 

Macro Definition Documentation

#define __SIO (   x,
  y 
)    ((int)(SIOC_VOID|(x<<8)|y))

Definition at line 144 of file soundcard.h.

#define __SIOC_DIR (   x)    (x & 0xf0000000)

Definition at line 149 of file soundcard.h.

#define __SIOC_NONE   SIOC_VOID

Definition at line 150 of file soundcard.h.

#define __SIOC_READ   SIOC_OUT

Definition at line 151 of file soundcard.h.

#define __SIOC_SIZE (   x)    ((x>>16)&SIOCPARM_MASK)

Definition at line 148 of file soundcard.h.

#define __SIOC_WRITE   SIOC_IN

Definition at line 152 of file soundcard.h.

#define __SIOR (   x,
  y,
  t 
)    ((int)(SIOC_OUT|((sizeof(t)&SIOCPARM_MASK)<<16)|(x<<8)|y))

Definition at line 145 of file soundcard.h.

#define __SIOW (   x,
  y,
  t 
)    ((int)(SIOC_IN|((sizeof(t)&SIOCPARM_MASK)<<16)|(x<<8)|y))

Definition at line 146 of file soundcard.h.

#define __SIOWR (   x,
  y,
  t 
)    ((int)(SIOC_INOUT|((sizeof(t)&SIOCPARM_MASK)<<16)|(x<<8)|y))

Definition at line 147 of file soundcard.h.

#define _CHN_COMMON (   dev,
  event,
  chn,
  p1,
  p2,
  w14 
)
Value:
_seqbuf[_seqbufptr] = EV_CHN_COMMON;\
_seqbuf[_seqbufptr+1] = (dev);\
_seqbuf[_seqbufptr+2] = (event);\
_seqbuf[_seqbufptr+3] = (chn);\
_seqbuf[_seqbufptr+4] = (p1);\
_seqbuf[_seqbufptr+5] = (p2);\
*(short *)&_seqbuf[_seqbufptr+6] = (w14);\
#define EV_CHN_COMMON
Definition: soundcard.h:1378
#define _SEQ_ADVBUF(len)
Definition: soundcard.h:1498
#define _SEQ_NEEDBUF(len)
Definition: soundcard.h:1496

Definition at line 1560 of file soundcard.h.

#define _CHN_VOICE (   dev,
  event,
  chn,
  note,
  parm 
)
Value:
_seqbuf[_seqbufptr] = EV_CHN_VOICE;\
_seqbuf[_seqbufptr+1] = (dev);\
_seqbuf[_seqbufptr+2] = (event);\
_seqbuf[_seqbufptr+3] = (chn);\
_seqbuf[_seqbufptr+4] = (note);\
_seqbuf[_seqbufptr+5] = (parm);\
_seqbuf[_seqbufptr+6] = (0);\
_seqbuf[_seqbufptr+7] = 0;\
#define EV_CHN_VOICE
Definition: soundcard.h:1379
#define _SEQ_ADVBUF(len)
Definition: soundcard.h:1498
#define _SEQ_NEEDBUF(len)
Definition: soundcard.h:1496

Definition at line 1535 of file soundcard.h.

#define _LOCAL_EVENT (   ev,
  parm 
)
Value:
_seqbuf[_seqbufptr+0] = EV_SEQ_LOCAL; \
_seqbuf[_seqbufptr+1] = (ev); \
_seqbuf[_seqbufptr+2] = 0;\
_seqbuf[_seqbufptr+3] = 0;\
*(unsigned int *)&_seqbuf[_seqbufptr+4] = (parm); \
#define _SEQ_ADVBUF(len)
Definition: soundcard.h:1498
#define _SEQ_NEEDBUF(len)
Definition: soundcard.h:1496
#define EV_SEQ_LOCAL
Definition: soundcard.h:1376

Definition at line 1669 of file soundcard.h.

#define _PATCHKEY (   id)    ((id<<8)|0xfd)

Definition at line 232 of file soundcard.h.

#define _SEQ_ADVBUF (   len)    _seqbufptr += len

Definition at line 1498 of file soundcard.h.

#define _SEQ_NEEDBUF (   len)    if ((_seqbufptr+(len)) > _seqbuflen) seqbuf_dump()

Definition at line 1496 of file soundcard.h.

#define _TIMER_EVENT (   ev,
  parm 
)
Value:
_seqbuf[_seqbufptr+0] = EV_TIMING; \
_seqbuf[_seqbufptr+1] = (ev); \
_seqbuf[_seqbufptr+2] = 0;\
_seqbuf[_seqbufptr+3] = 0;\
*(unsigned int *)&_seqbuf[_seqbufptr+4] = (parm); \
#define _SEQ_ADVBUF(len)
Definition: soundcard.h:1498
#define EV_TIMING
Definition: soundcard.h:1377
#define _SEQ_NEEDBUF(len)
Definition: soundcard.h:1496

Definition at line 1647 of file soundcard.h.

#define AFMT_A_LAW   0x00000002

Definition at line 604 of file soundcard.h.

#define AFMT_AC3   0x00000400

Definition at line 615 of file soundcard.h.

#define AFMT_FLOAT   0x00004000

Definition at line 624 of file soundcard.h.

#define AFMT_IMA_ADPCM   0x00000004

Definition at line 605 of file soundcard.h.

#define AFMT_MPEG   0x00000200 /* MPEG (2) audio */

Definition at line 612 of file soundcard.h.

#define AFMT_MU_LAW   0x00000001

Definition at line 603 of file soundcard.h.

#define AFMT_QUERY   0x00000000 /* Return current fmt */

Definition at line 602 of file soundcard.h.

#define AFMT_S16_BE   0x00000020 /* Big endian signed 16 */

Definition at line 608 of file soundcard.h.

#define AFMT_S16_LE   0x00000010 /* Little endian signed 16 */

Definition at line 607 of file soundcard.h.

#define AFMT_S16_NE   AFMT_S16_LE

Definition at line 233 of file soundcard.h.

#define AFMT_S16_OE   AFMT_S16_BE

Definition at line 237 of file soundcard.h.

#define AFMT_S24_BE   0x00010000

Definition at line 628 of file soundcard.h.

#define AFMT_S24_LE   0x00008000

Definition at line 627 of file soundcard.h.

#define AFMT_S24_NE   AFMT_S24_LE

Definition at line 236 of file soundcard.h.

#define AFMT_S24_OE   AFMT_S24_BE

Definition at line 239 of file soundcard.h.

#define AFMT_S24_PACKED   0x00040000

Definition at line 640 of file soundcard.h.

#define AFMT_S32_BE   0x00002000

Definition at line 621 of file soundcard.h.

#define AFMT_S32_LE   0x00001000

Definition at line 620 of file soundcard.h.

#define AFMT_S32_NE   AFMT_S32_LE

Definition at line 235 of file soundcard.h.

#define AFMT_S32_OE   AFMT_S32_BE

Definition at line 238 of file soundcard.h.

#define AFMT_S8   0x00000040

Definition at line 609 of file soundcard.h.

#define AFMT_SPDIF_RAW   0x00020000

Definition at line 637 of file soundcard.h.

#define AFMT_U16_BE   0x00000100 /* Big endian U16 */

Definition at line 611 of file soundcard.h.

#define AFMT_U16_LE   0x00000080 /* Little endian U16 */

Definition at line 610 of file soundcard.h.

#define AFMT_U16_NE   AFMT_U16_LE

Definition at line 234 of file soundcard.h.

#define AFMT_U8   0x00000008

Definition at line 606 of file soundcard.h.

#define AFMT_VORBIS   0x00000800

Definition at line 617 of file soundcard.h.

#define APF_CPUINTENS   2 /* Underruns probably caused by "overheating" the CPU */

Definition at line 754 of file soundcard.h.

#define APF_NETWORK   1 /* Underruns probably caused by an "external" delay */

Definition at line 753 of file soundcard.h.

#define APF_NORMAL   0 /* Normal applications */

Definition at line 752 of file soundcard.h.

#define CTL_BALANCE   0x08

Definition at line 411 of file soundcard.h.

#define CTL_BANK_SELECT   0x00

Definition at line 403 of file soundcard.h.

#define CTL_BREATH   0x02

Definition at line 405 of file soundcard.h.

#define CTL_CELESTE_DEPTH   0x5e /* Alias for the above one */

Definition at line 451 of file soundcard.h.

#define CTL_CHORUS_DEPTH   0x5d

Definition at line 449 of file soundcard.h.

#define CTL_DAMPER_PEDAL   0x40

Definition at line 432 of file soundcard.h.

#define CTL_DATA_DECREMENT   0x61

Definition at line 454 of file soundcard.h.

#define CTL_DATA_ENTRY   0x06

Definition at line 409 of file soundcard.h.

#define CTL_DATA_INCREMENT   0x60

Definition at line 453 of file soundcard.h.

#define CTL_DETUNE_DEPTH   0x5e

Definition at line 450 of file soundcard.h.

#define CTL_EXPRESSION   0x0b

Definition at line 414 of file soundcard.h.

#define CTL_EXT_EFF_DEPTH   0x5b

Definition at line 447 of file soundcard.h.

#define CTL_FOOT   0x04

Definition at line 407 of file soundcard.h.

#define CTL_GENERAL_PURPOSE1   0x10

Definition at line 419 of file soundcard.h.

#define CTL_GENERAL_PURPOSE2   0x11

Definition at line 420 of file soundcard.h.

#define CTL_GENERAL_PURPOSE3   0x12

Definition at line 421 of file soundcard.h.

#define CTL_GENERAL_PURPOSE4   0x13

Definition at line 422 of file soundcard.h.

#define CTL_GENERAL_PURPOSE5   0x50

Definition at line 442 of file soundcard.h.

#define CTL_GENERAL_PURPOSE6   0x51

Definition at line 443 of file soundcard.h.

#define CTL_GENERAL_PURPOSE7   0x52

Definition at line 444 of file soundcard.h.

#define CTL_GENERAL_PURPOSE8   0x53

Definition at line 445 of file soundcard.h.

#define CTL_HOLD   0x40 /* Alias */

Definition at line 434 of file soundcard.h.

#define CTL_HOLD2   0x45

Definition at line 439 of file soundcard.h.

#define CTL_MAIN_VOLUME   0x07

Definition at line 410 of file soundcard.h.

#define CTL_MODWHEEL   0x01

Definition at line 404 of file soundcard.h.

#define CTL_NONREG_PARM_NUM_LSB   0x62

Definition at line 455 of file soundcard.h.

#define CTL_NONREG_PARM_NUM_MSB   0x63

Definition at line 456 of file soundcard.h.

#define CTL_PAN   0x0a

Definition at line 413 of file soundcard.h.

#define CTL_PHASER_DEPTH   0x5f

Definition at line 452 of file soundcard.h.

#define CTL_PORTAMENTO   0x41

Definition at line 435 of file soundcard.h.

#define CTL_PORTAMENTO_TIME   0x05

Definition at line 408 of file soundcard.h.

#define CTL_REGIST_PARM_NUM_LSB   0x64

Definition at line 457 of file soundcard.h.

#define CTL_REGIST_PARM_NUM_MSB   0x65

Definition at line 458 of file soundcard.h.

#define CTL_SOFT_PEDAL   0x43

Definition at line 437 of file soundcard.h.

#define CTL_SOSTENUTO   0x42

Definition at line 436 of file soundcard.h.

#define CTL_SUSTAIN   0x40 /* Alias */

Definition at line 433 of file soundcard.h.

#define CTL_TREMOLO_DEPTH   0x5c

Definition at line 448 of file soundcard.h.

#define CTRL_EXPRESSION   253 /* Obsolete */

Definition at line 465 of file soundcard.h.

#define CTRL_MAIN_VOLUME   252 /* Obsolete */

Definition at line 466 of file soundcard.h.

#define CTRL_PITCH_BENDER   255

Definition at line 463 of file soundcard.h.

#define CTRL_PITCH_BENDER_RANGE   254

Definition at line 464 of file soundcard.h.

#define DIG_CBITIN_BYTE0   0x00000004

Definition at line 783 of file soundcard.h.

#define DIG_CBITIN_DATA   0x00000002

Definition at line 782 of file soundcard.h.

#define DIG_CBITIN_FULL   0x00000008

Definition at line 784 of file soundcard.h.

#define DIG_CBITIN_LIMITED   0x00000001

Definition at line 781 of file soundcard.h.

#define DIG_CBITIN_MASK   0x0000000f

Definition at line 785 of file soundcard.h.

#define DIG_CBITIN_NONE   0x00000000

Definition at line 780 of file soundcard.h.

#define DIG_CBITOUT_BYTE0   0x00000020

Definition at line 788 of file soundcard.h.

#define DIG_CBITOUT_DATA   0x00000080

Definition at line 790 of file soundcard.h.

#define DIG_CBITOUT_FULL   0x00000040

Definition at line 789 of file soundcard.h.

#define DIG_CBITOUT_LIMITED   0x00000010

Definition at line 787 of file soundcard.h.

#define DIG_CBITOUT_MASK   0x000000f0

Definition at line 791 of file soundcard.h.

#define DIG_CBITOUT_NONE   0x00000000

Definition at line 786 of file soundcard.h.

#define DIG_CONSUMER   0x00040000

Definition at line 801 of file soundcard.h.

#define DIG_EXACT   0x00010000

Definition at line 799 of file soundcard.h.

#define DIG_INBITS   0x00002000

Definition at line 797 of file soundcard.h.

#define DIG_INRATE   0x00001000

Definition at line 796 of file soundcard.h.

#define DIG_OUTBITS   0x00004000

Definition at line 798 of file soundcard.h.

#define DIG_OUTRATE   0x00000800

Definition at line 795 of file soundcard.h.

#define DIG_OUTSEL   0x00100000

Definition at line 803 of file soundcard.h.

#define DIG_PASSTHROUGH   0x00080000

Definition at line 802 of file soundcard.h.

#define DIG_PRO   0x00020000

Definition at line 800 of file soundcard.h.

#define DIG_UBITIN   0x00000100

Definition at line 792 of file soundcard.h.

#define DIG_UBITOUT   0x00000200

Definition at line 793 of file soundcard.h.

#define DIG_VBITOUT   0x00000400

Definition at line 794 of file soundcard.h.

#define DSP_BIND_CENTER_LFE   0x00000004

Definition at line 929 of file soundcard.h.

#define DSP_BIND_FRONT   0x00000001

Definition at line 927 of file soundcard.h.

#define DSP_BIND_HANDSET   0x00000008

Definition at line 930 of file soundcard.h.

#define DSP_BIND_I2S   0x00000080

Definition at line 934 of file soundcard.h.

#define DSP_BIND_MIC   0x00000010

Definition at line 931 of file soundcard.h.

#define DSP_BIND_MODEM1   0x00000020

Definition at line 932 of file soundcard.h.

#define DSP_BIND_MODEM2   0x00000040

Definition at line 933 of file soundcard.h.

#define DSP_BIND_QUERY   0x00000000

Definition at line 926 of file soundcard.h.

#define DSP_BIND_REAR   0x00000200

Definition at line 936 of file soundcard.h.

#define DSP_BIND_SPDIF   0x00000100

Definition at line 935 of file soundcard.h.

#define DSP_BIND_SURR   0x00000002

Definition at line 928 of file soundcard.h.

#define DSP_CAP_ADMASK   0x00f00000

Definition at line 682 of file soundcard.h.

#define DSP_CAP_ANALOGIN   0x00200000

Definition at line 679 of file soundcard.h.

#define DSP_CAP_ANALOGOUT   0x00100000

Definition at line 678 of file soundcard.h.

#define DSP_CAP_BATCH   0x00000400 /* Device has some kind of */

Definition at line 661 of file soundcard.h.

#define DSP_CAP_BIND   0x00008000 /* Supports binding to front/rear/center/lfe */

Definition at line 671 of file soundcard.h.

#define DSP_CAP_COPROC   0x00000800 /* Has a coprocessor */

Definition at line 665 of file soundcard.h.

#define DSP_CAP_DIGITALIN   0x00800000

Definition at line 681 of file soundcard.h.

#define DSP_CAP_DIGITALOUT   0x00400000

Definition at line 680 of file soundcard.h.

#define DSP_CAP_DUPLEX   0x00000100 /* Full duplex record/playback */

Definition at line 659 of file soundcard.h.

#define DSP_CAP_FREERATE   0x10000000

Definition at line 712 of file soundcard.h.

#define DSP_CAP_INPUT   0x00010000 /* Supports recording */

Definition at line 672 of file soundcard.h.

#define DSP_CAP_MMAP   0x00002000 /* Supports mmap() */

Definition at line 669 of file soundcard.h.

#define DSP_CAP_MULTI   0x00004000 /* Supports multiple open */

Definition at line 670 of file soundcard.h.

#define DSP_CAP_OUTPUT   0x00020000 /* Supports playback */

Definition at line 673 of file soundcard.h.

#define DSP_CAP_REALTIME   0x00000200 /* Not in use */

Definition at line 660 of file soundcard.h.

#define DSP_CAP_REVISION   0x000000ff /* Bits for revision level (0 to 255) */

Definition at line 658 of file soundcard.h.

#define DSP_CAP_SHADOW   0x01000000 /* "Shadow" device */

Definition at line 690 of file soundcard.h.

#define DSP_CAP_SLAVE   0x08000000 /* "Slave" device */

Definition at line 711 of file soundcard.h.

#define DSP_CAP_TRIGGER   0x00001000 /* Supports SETTRIGGER */

Definition at line 668 of file soundcard.h.

#define DSP_CAP_VIRTUAL   0x00040000 /* Virtuial device */

Definition at line 674 of file soundcard.h.

#define DSP_CH_ANY   0x00000000 /* No preferred mode */

Definition at line 706 of file soundcard.h.

#define DSP_CH_MASK   0x06000000 /* Mask */

Definition at line 705 of file soundcard.h.

#define DSP_CH_MONO   0x02000000

Definition at line 707 of file soundcard.h.

#define DSP_CH_MULTI   0x06000000 /* More than two channels */

Definition at line 709 of file soundcard.h.

#define DSP_CH_STEREO   0x04000000

Definition at line 708 of file soundcard.h.

#define EV_CHN_COMMON   0x92

Definition at line 1378 of file soundcard.h.

#define EV_CHN_VOICE   0x93

Definition at line 1379 of file soundcard.h.

#define EV_SEQ_LOCAL   0x80

Definition at line 1376 of file soundcard.h.

#define EV_SYSEX   0x94

Definition at line 1380 of file soundcard.h.

#define EV_SYSTEM   0x95 /* MIDI system and real time messages (input only) */

Definition at line 1381 of file soundcard.h.

#define EV_TIMING   0x81

Definition at line 1377 of file soundcard.h.

#define EXTERNC   extern

Definition at line 38 of file soundcard.h.

#define FM_PATCH   _PATCHKEY(0x01)

Definition at line 517 of file soundcard.h.

#define FM_TYPE_ADLIB   0x00

Definition at line 534 of file soundcard.h.

#define FM_TYPE_OPL3   0x01

Definition at line 535 of file soundcard.h.

#define GUS_PATCH   WAVE_PATCH

Definition at line 253 of file soundcard.h.

#define IN_QUAL_GOOD   2

Definition at line 846 of file soundcard.h.

#define IN_QUAL_NOT_INDICATED   0

Definition at line 844 of file soundcard.h.

#define IN_QUAL_POOR   1

Definition at line 845 of file soundcard.h.

#define IND_AUDIO   1

Definition at line 835 of file soundcard.h.

#define IND_DATA   2

Definition at line 836 of file soundcard.h.

#define IND_UNKNOWN   0

Definition at line 834 of file soundcard.h.

#define INERR_BIPHASE   0x0008

Definition at line 857 of file soundcard.h.

#define INERR_CRC   0x0001

Definition at line 854 of file soundcard.h.

#define INERR_PARITY   0x0004

Definition at line 856 of file soundcard.h.

#define INERR_QCODE_CRC   0x0002

Definition at line 855 of file soundcard.h.

#define LOCK_LOCKED   2

Definition at line 841 of file soundcard.h.

#define LOCK_NOT_INDICATED   0

Definition at line 839 of file soundcard.h.

#define LOCK_UNLOCKED   1

Definition at line 840 of file soundcard.h.

#define LOCL_STARTAUDIO   1

Definition at line 1423 of file soundcard.h.

#define LOCL_STARTAUDIO2   2

Definition at line 1424 of file soundcard.h.

#define LOCL_STARTAUDIO3   3

Definition at line 1425 of file soundcard.h.

#define LOCL_STARTAUDIO4   4

Definition at line 1426 of file soundcard.h.

#define MAUI_PATCH   _PATCHKEY(0x06)

Definition at line 343 of file soundcard.h.

#define MIDI_CAP_MPU401   1 /* MPU-401 intelligent mode */

Definition at line 559 of file soundcard.h.

#define MIDI_CHN_PRESSURE   0xD0

Definition at line 1401 of file soundcard.h.

#define MIDI_CTL_CHANGE   0xB0

Definition at line 1399 of file soundcard.h.

#define MIDI_KEY_PRESSURE   0xA0

Definition at line 1393 of file soundcard.h.

#define MIDI_NOTEOFF   0x80

Definition at line 1391 of file soundcard.h.

#define MIDI_NOTEON   0x90

Definition at line 1392 of file soundcard.h.

#define MIDI_PGM_CHANGE   0xC0

Definition at line 1400 of file soundcard.h.

#define MIDI_PITCH_BEND   0xE0

Definition at line 1402 of file soundcard.h.

#define MIDI_SYSTEM_PREFIX   0xF0

Definition at line 1404 of file soundcard.h.

#define MIDI_TYPE_MPU401   0x401

Definition at line 536 of file soundcard.h.

#define MIXER_READ (   dev)    __SIOR('M', dev, int)

Definition at line 1071 of file soundcard.h.

#define MIXER_WRITE (   dev)    __SIOWR('M', dev, int)

Definition at line 1101 of file soundcard.h.

#define MIXF_DYNAMIC   0x00000010 /* Supports dynamic extensions */

Definition at line 1273 of file soundcard.h.

#define MIXF_HZ   0x00000008 /* Herz scale */

Definition at line 1271 of file soundcard.h.

#define MIXF_POLL   0x00000004 /* May change itself */

Definition at line 1270 of file soundcard.h.

#define MIXF_READABLE   0x00000001 /* Has readable value */

Definition at line 1268 of file soundcard.h.

#define MIXF_STRING   0x00000010 /* Use dynamic extensions for value */

Definition at line 1272 of file soundcard.h.

#define MIXF_WRITEABLE   0x00000002 /* Has writeable value */

Definition at line 1269 of file soundcard.h.

#define MIXT_3D   18

Definition at line 1260 of file soundcard.h.

#define MIXT_DEVROOT   0 /* Device root entry */

Definition at line 1242 of file soundcard.h.

#define MIXT_ENUM   3 /* Enumerated (0 to maxvalue) */

Definition at line 1245 of file soundcard.h.

#define MIXT_GROUP   1 /* Controller group */

Definition at line 1243 of file soundcard.h.

#define MIXT_HEXVALUE   14 /* Hexadecimal value entry */

Definition at line 1256 of file soundcard.h.

#define MIXT_MARKER   12 /* Separator between normal and extension entries */

Definition at line 1254 of file soundcard.h.

#define MIXT_MESSAGE   6 /* (Readable) textual message */

Definition at line 1248 of file soundcard.h.

#define MIXT_MONODB   15 /* Mono atten. slider (0 to -144) */

Definition at line 1257 of file soundcard.h.

#define MIXT_MONOPEAK   9 /* VU meter peak value (mono) */

Definition at line 1251 of file soundcard.h.

#define MIXT_MONOSLIDER   4 /* Mono slider (0 to 100) */

Definition at line 1246 of file soundcard.h.

#define MIXT_MONOVU   7 /* VU meter value (mono) */

Definition at line 1249 of file soundcard.h.

#define MIXT_ONOFF   2 /* OFF (0) or ON (1) */

Definition at line 1244 of file soundcard.h.

#define MIXT_RADIOGROUP   11 /* Radio button group */

Definition at line 1253 of file soundcard.h.

#define MIXT_SLIDER   17 /* Slider (mono) with full integer range */

Definition at line 1259 of file soundcard.h.

#define MIXT_STEREODB   16 /* Stereo atten. slider (dual 0 to -144) */

Definition at line 1258 of file soundcard.h.

#define MIXT_STEREOPEAK   10 /* VU meter peak value (stereo) */

Definition at line 1252 of file soundcard.h.

#define MIXT_STEREOSLIDER   5 /* Stereo slider (dual 0 to 100) */

Definition at line 1247 of file soundcard.h.

#define MIXT_STEREOVU   8 /* VU meter value (stereo) */

Definition at line 1250 of file soundcard.h.

#define MIXT_VALUE   13 /* Decimal value entry */

Definition at line 1255 of file soundcard.h.

#define OPEN_READ   PCM_ENABLE_INPUT

Definition at line 1316 of file soundcard.h.

#define OPEN_READWRITE   (OPEN_READ|OPEN_WRITE)

Definition at line 1318 of file soundcard.h.

#define OPEN_SOUND_SYSTEM

Definition at line 50 of file soundcard.h.

#define OPEN_WRITE   PCM_ENABLE_OUTPUT

Definition at line 1317 of file soundcard.h.

#define OPL3_PATCH   _PATCHKEY(0x03)

Definition at line 518 of file soundcard.h.

#define OSS_ENUM_MAXVALUE   255

Definition at line 1306 of file soundcard.h.

#define OSS_GETVERSION   __SIOR ('M', 118, int)

Definition at line 1193 of file soundcard.h.

#define OSS_SYSINFO   __SIOR ('X', 1, oss_sysinfo)

Definition at line 1345 of file soundcard.h.

#define osslib_close   close

Definition at line 1719 of file soundcard.h.

#define osslib_ioctl   ioctl

Definition at line 1722 of file soundcard.h.

#define osslib_open   open

Definition at line 1718 of file soundcard.h.

#define osslib_read   read

Definition at line 1721 of file soundcard.h.

#define osslib_write   write

Definition at line 1720 of file soundcard.h.

#define OUTSEL_ANALOG   2

Definition at line 830 of file soundcard.h.

#define OUTSEL_BOTH   (OUTSEL_DIGITAL|OUTSEL_ANALOG)

Definition at line 831 of file soundcard.h.

#define OUTSEL_DIGITAL   1

Definition at line 829 of file soundcard.h.

#define PCM_ENABLE_INPUT   0x00000001

Definition at line 716 of file soundcard.h.

#define PCM_ENABLE_OUTPUT   0x00000002

Definition at line 717 of file soundcard.h.

#define SAMPLE_TYPE_BASIC   0x10

Definition at line 538 of file soundcard.h.

#define SAMPLE_TYPE_GUS   SAMPLE_TYPE_BASIC

Definition at line 539 of file soundcard.h.

#define SAMPLE_TYPE_WAVEFRONT   0x11

Definition at line 540 of file soundcard.h.

#define SEQ_AFTERTOUCH   9

Definition at line 385 of file soundcard.h.

#define SEQ_BALANCE   11

Definition at line 387 of file soundcard.h.

#define SEQ_BENDER (   dev,
  chn,
  value 
)    _CHN_COMMON(dev, MIDI_PITCH_BEND, chn, 0, 0, value)

Definition at line 1614 of file soundcard.h.

#define SEQ_BENDER_RANGE (   dev,
  voice,
  value 
)    SEQ_V2_X_CONTROL(dev, voice, CTRL_PITCH_BENDER_RANGE, value)

Definition at line 1634 of file soundcard.h.

#define SEQ_CHN_PRESSURE (   dev,
  chn,
  pressure 
)    _CHN_COMMON(dev, MIDI_CHN_PRESSURE, chn, pressure, 0, 0)

Definition at line 1598 of file soundcard.h.

#define SEQ_CONTINUE_TIMER ( )    _TIMER_EVENT(TMR_CONTINUE, 0)

Definition at line 1657 of file soundcard.h.

#define SEQ_CONTROL (   dev,
  chn,
  controller,
  value 
)    _CHN_COMMON(dev, MIDI_CTL_CHANGE, chn, controller, 0, value)

Definition at line 1611 of file soundcard.h.

#define SEQ_CONTROLLER   10

Definition at line 386 of file soundcard.h.

#define SEQ_DECLAREBUF ( )    SEQ_USE_EXTBUF()

Definition at line 1435 of file soundcard.h.

#define SEQ_DEFINEBUF (   len)    unsigned char _seqbuf[len]; int _seqbuflen = len;int _seqbufptr = 0

Definition at line 1494 of file soundcard.h.

#define SEQ_DELTA_TIME (   ticks)    _TIMER_EVENT(TMR_WAIT_REL, ticks)

Definition at line 1659 of file soundcard.h.

#define SEQ_DRUMOFF   7 /*** OBSOLETE ***/

Definition at line 383 of file soundcard.h.

#define SEQ_DRUMON   6 /*** OBSOLETE ***/

Definition at line 382 of file soundcard.h.

#define SEQ_DUMPBUF   seqbuf_dump

Definition at line 1499 of file soundcard.h.

#define SEQ_ECHO   TMR_ECHO /* For synching programs with output */

Definition at line 384 of file soundcard.h.

#define SEQ_ECHO_BACK (   key)    _TIMER_EVENT(TMR_ECHO, key)

Definition at line 1660 of file soundcard.h.

#define SEQ_EXPRESSION (   dev,
  voice,
  value 
)    SEQ_CONTROL(dev, voice, CTL_EXPRESSION, value*128)

Definition at line 1636 of file soundcard.h.

#define SEQ_EXTENDED   0xff /* Extended events (8 bytes) OBSOLETE */

Definition at line 506 of file soundcard.h.

#define SEQ_FMNOTEOFF   SEQ_NOTEOFF /* Just old name */

Definition at line 374 of file soundcard.h.

#define SEQ_FMNOTEON   SEQ_NOTEON

Definition at line 376 of file soundcard.h.

#define SEQ_FMPGMCHANGE   SEQ_PGMCHANGE

Definition at line 379 of file soundcard.h.

#define SEQ_FULLSIZE   0xfd /* Long events */

Definition at line 484 of file soundcard.h.

#define SEQ_KEY_PRESSURE (   dev,
  chn,
  note,
  pressure 
)    _CHN_VOICE(dev, MIDI_KEY_PRESSURE, chn, note, pressure)

Definition at line 1553 of file soundcard.h.

#define SEQ_LOAD_GMDRUM (   dev,
  drum 
)

Definition at line 1468 of file soundcard.h.

#define SEQ_LOAD_GMINSTR (   dev,
  instr 
)

Definition at line 1467 of file soundcard.h.

#define SEQ_MAIN_VOLUME (   dev,
  voice,
  value 
)    SEQ_CONTROL(dev, voice, CTL_MAIN_VOLUME, (value*16383)/100)

Definition at line 1638 of file soundcard.h.

#define SEQ_MIDIOUT (   device,
  byte 
)
Value:
_seqbuf[_seqbufptr] = SEQ_MIDIPUTC;\
_seqbuf[_seqbufptr+1] = (byte);\
_seqbuf[_seqbufptr+2] = (device);\
_seqbuf[_seqbufptr+3] = 0;\
#define _SEQ_ADVBUF(len)
Definition: soundcard.h:1498
#define _SEQ_NEEDBUF(len)
Definition: soundcard.h:1496
unsigned char byte
Definition: Lib.h:75
#define SEQ_MIDIPUTC
Definition: soundcard.h:381

Definition at line 1685 of file soundcard.h.

#define SEQ_MIDIPUTC   5

Definition at line 381 of file soundcard.h.

#define SEQ_NOTEOFF   0

Definition at line 373 of file soundcard.h.

#define SEQ_NOTEON   1

Definition at line 375 of file soundcard.h.

#define SEQ_PANNING (   dev,
  voice,
  pos 
)    SEQ_CONTROL(dev, voice, CTL_PAN, (pos+128) / 2)

Definition at line 1640 of file soundcard.h.

#define SEQ_PGM_CHANGE (   dev,
  chn,
  patch 
)    _CHN_COMMON(dev, MIDI_PGM_CHANGE, chn, patch, 0, 0)

Definition at line 1607 of file soundcard.h.

#define SEQ_PGMCHANGE   3

Definition at line 378 of file soundcard.h.

#define SEQ_PITCHBEND (   dev,
  voice,
  value 
)    SEQ_V2_X_CONTROL(dev, voice, CTRL_PITCH_BENDER, value)

Definition at line 1632 of file soundcard.h.

#define SEQ_PLAYAUDIO (   devmask)    _LOCAL_EVENT(LOCL_STARTAUDIO, devmask)

Definition at line 1677 of file soundcard.h.

#define SEQ_PLAYAUDIO2 (   devmask)    _LOCAL_EVENT(LOCL_STARTAUDIO2, devmask)

Definition at line 1678 of file soundcard.h.

#define SEQ_PLAYAUDIO3 (   devmask)    _LOCAL_EVENT(LOCL_STARTAUDIO3, devmask)

Definition at line 1679 of file soundcard.h.

#define SEQ_PLAYAUDIO4 (   devmask)    _LOCAL_EVENT(LOCL_STARTAUDIO4, devmask)

Definition at line 1680 of file soundcard.h.

#define SEQ_PM_DEFINES   int __foo_bar___

Definition at line 1451 of file soundcard.h.

#define SEQ_PRIVATE   0xfe /* Low level HW dependent events (8 bytes) */

Definition at line 505 of file soundcard.h.

#define SEQ_SET_PATCH   SEQ_PGM_CHANGE

Definition at line 1601 of file soundcard.h.

#define SEQ_SET_TEMPO (   value)    _TIMER_EVENT(TMR_TEMPO, value)

Definition at line 1661 of file soundcard.h.

#define SEQ_SONGPOS (   pos)    _TIMER_EVENT(TMR_SPP, pos)

Definition at line 1662 of file soundcard.h.

#define SEQ_START_NOTE (   dev,
  chn,
  note,
  vol 
)    _CHN_VOICE(dev, MIDI_NOTEON, chn, note, vol)

Definition at line 1547 of file soundcard.h.

#define SEQ_START_TIMER ( )    _TIMER_EVENT(TMR_START, 0)

Definition at line 1655 of file soundcard.h.

#define SEQ_STOP_NOTE (   dev,
  chn,
  note,
  vol 
)    _CHN_VOICE(dev, MIDI_NOTEOFF, chn, note, vol)

Definition at line 1550 of file soundcard.h.

#define SEQ_STOP_TIMER ( )    _TIMER_EVENT(TMR_STOP, 0)

Definition at line 1656 of file soundcard.h.

#define SEQ_SYNCTIMER   TMR_START

Definition at line 380 of file soundcard.h.

#define SEQ_SYSEX (   dev,
  buf,
  len 
)
Value:
{int ii, ll=(len); \
unsigned char *bufp=buf;\
if (ll>6)ll=6;\
_seqbuf[_seqbufptr] = EV_SYSEX;\
_seqbuf[_seqbufptr+1] = (dev);\
for(ii=0;ii<ll;ii++)\
_seqbuf[_seqbufptr+ii+2] = bufp[ii];\
for(ii=ll;ii<6;ii++)\
_seqbuf[_seqbufptr+ii+2] = 0xff;\
GLenum GLsizei len
Definition: glext.h:3472
#define _SEQ_ADVBUF(len)
Definition: soundcard.h:1498
#define EV_SYSEX
Definition: soundcard.h:1380
#define _SEQ_NEEDBUF(len)
Definition: soundcard.h:1496
if(!ValidDisplayID(prefInfo.prefDisplayID)) prefInfo.prefDisplayID

Definition at line 1585 of file soundcard.h.

#define SEQ_TIME_SIGNATURE (   sig)    _TIMER_EVENT(TMR_TIMESIG, sig)

Definition at line 1663 of file soundcard.h.

#define SEQ_USE_EXTBUF ( )
Value:
EXTERNC unsigned char _seqbuf[]; \
EXTERNC int _seqbuflen;EXTERNC int _seqbufptr
#define EXTERNC
Definition: soundcard.h:38

Definition at line 1470 of file soundcard.h.

#define SEQ_V2_X_CONTROL (   dev,
  voice,
  controller,
  value 
)
Value:
_seqbuf[_seqbufptr] = SEQ_EXTENDED;\
_seqbuf[_seqbufptr+1] = SEQ_CONTROLLER;\
_seqbuf[_seqbufptr+2] = (dev);\
_seqbuf[_seqbufptr+3] = (voice);\
_seqbuf[_seqbufptr+4] = (controller);\
_seqbuf[_seqbufptr+5] = ((value)&0xff);\
_seqbuf[_seqbufptr+6] = ((value>>8)&0xff);\
_seqbuf[_seqbufptr+7] = 0;\
#define SEQ_CONTROLLER
Definition: soundcard.h:386
GLsizei const GLfloat * value
Definition: glext.h:3614
#define _SEQ_ADVBUF(len)
Definition: soundcard.h:1498
#define _SEQ_NEEDBUF(len)
Definition: soundcard.h:1496
#define SEQ_EXTENDED
Definition: soundcard.h:506

Definition at line 1617 of file soundcard.h.

#define SEQ_VOLMODE   12

Definition at line 388 of file soundcard.h.

#define SEQ_VOLUME_MODE (   dev,
  mode 
)
Value:
_seqbuf[_seqbufptr] = SEQ_EXTENDED;\
_seqbuf[_seqbufptr+1] = SEQ_VOLMODE;\
_seqbuf[_seqbufptr+2] = (dev);\
_seqbuf[_seqbufptr+3] = (mode);\
_seqbuf[_seqbufptr+4] = 0;\
_seqbuf[_seqbufptr+5] = 0;\
_seqbuf[_seqbufptr+6] = 0;\
_seqbuf[_seqbufptr+7] = 0;\
#define _SEQ_ADVBUF(len)
Definition: soundcard.h:1498
GLint mode
Definition: glext.h:4165
#define _SEQ_NEEDBUF(len)
Definition: soundcard.h:1496
#define SEQ_VOLMODE
Definition: soundcard.h:388
#define SEQ_EXTENDED
Definition: soundcard.h:506

Definition at line 1519 of file soundcard.h.

#define SEQ_WAIT   TMR_WAIT_ABS

Definition at line 377 of file soundcard.h.

#define SEQ_WAIT_TIME (   ticks)    _TIMER_EVENT(TMR_WAIT_ABS, ticks)

Definition at line 1658 of file soundcard.h.

#define SEQ_WRPATCH (   patchx,
  len 
)
Value:
{if (_seqbufptr) SEQ_DUMPBUF();\
if (write(seqfd, (char*)(patchx), len)==-1) \
perror("Write patch: /dev/sequencer");}
GLenum GLsizei len
Definition: glext.h:3472
#define SEQ_DUMPBUF
Definition: soundcard.h:1499
if(!ValidDisplayID(prefInfo.prefDisplayID)) prefInfo.prefDisplayID

Definition at line 1701 of file soundcard.h.

#define SEQ_WRPATCH2 (   patchx,
  len 
)    (SEQ_DUMPBUF(), write(seqfd, (char*)(patchx), len))

Definition at line 1705 of file soundcard.h.

#define SIOC_IN   0x40000000 /* copy in parameters */

Definition at line 140 of file soundcard.h.

#define SIOC_INOUT   (SIOC_IN|SIOC_OUT)

Definition at line 141 of file soundcard.h.

#define SIOC_OUT   0x20000000 /* copy out parameters */

Definition at line 139 of file soundcard.h.

#define SIOC_VOID   0x00000000 /* no parameters */

Definition at line 138 of file soundcard.h.

#define SIOCPARM_MASK   0x1fff /* parameters must be < 8192 bytes */

Definition at line 137 of file soundcard.h.

#define SNDCARD_ADLIB   1

Definition at line 75 of file soundcard.h.

#define SNDCARD_CS4232   21

Definition at line 95 of file soundcard.h.

#define SNDCARD_CS4232_MPU   22

Definition at line 96 of file soundcard.h.

#define SNDCARD_GUS   4

Definition at line 78 of file soundcard.h.

#define SNDCARD_GUS16   9

Definition at line 83 of file soundcard.h.

#define SNDCARD_GUSPNP   25

Definition at line 99 of file soundcard.h.

#define SNDCARD_MAD16   19

Definition at line 93 of file soundcard.h.

#define SNDCARD_MAD16_MPU   20

Definition at line 94 of file soundcard.h.

#define SNDCARD_MAUI   23

Definition at line 97 of file soundcard.h.

#define SNDCARD_MPU401   5

Definition at line 79 of file soundcard.h.

#define SNDCARD_MSS   10

Definition at line 84 of file soundcard.h.

#define SNDCARD_PAS   3

Definition at line 77 of file soundcard.h.

#define SNDCARD_PSEUDO_MSS   24

Definition at line 98 of file soundcard.h.

#define SNDCARD_PSS   11

Definition at line 85 of file soundcard.h.

#define SNDCARD_PSS_MPU   13

Definition at line 87 of file soundcard.h.

#define SNDCARD_PSS_MSS   14

Definition at line 88 of file soundcard.h.

#define SNDCARD_SB   2

Definition at line 76 of file soundcard.h.

#define SNDCARD_SB16   6

Definition at line 80 of file soundcard.h.

#define SNDCARD_SB16MIDI   7

Definition at line 81 of file soundcard.h.

#define SNDCARD_SSCAPE   12

Definition at line 86 of file soundcard.h.

#define SNDCARD_SSCAPE_MSS   15

Definition at line 89 of file soundcard.h.

#define SNDCARD_TRXPRO   16

Definition at line 90 of file soundcard.h.

#define SNDCARD_TRXPRO_MPU   18

Definition at line 92 of file soundcard.h.

#define SNDCARD_TRXPRO_SB   17

Definition at line 91 of file soundcard.h.

#define SNDCARD_UART401   26

Definition at line 100 of file soundcard.h.

#define SNDCARD_UART6850   8

Definition at line 82 of file soundcard.h.

#define SNDCTL_AUDIOINFO   __SIOWR('X', 7, oss_audioinfo)

Definition at line 1353 of file soundcard.h.

#define SNDCTL_DSP_BIND_CHANNEL   __SIOWR('P', 65, int)

Definition at line 925 of file soundcard.h.

#define SNDCTL_DSP_CHANNELS   __SIOWR('P', 6, int)

Definition at line 594 of file soundcard.h.

#define SNDCTL_DSP_COOKEDMODE   __SIOW ('P', 30, int)

Definition at line 891 of file soundcard.h.

#define SNDCTL_DSP_CURRENT_IPTR   __SIOR ('P', 35, oss_count_t)

Definition at line 912 of file soundcard.h.

#define SNDCTL_DSP_CURRENT_OPTR   __SIOR ('P', 36, oss_count_t)

Definition at line 913 of file soundcard.h.

#define SNDCTL_DSP_GET_PLAYTGT   __SIOR ('P', 40, int)

Definition at line 921 of file soundcard.h.

#define SNDCTL_DSP_GET_PLAYTGT_NAMES   __SIOR ('P', 39, oss_mixer_enuminfo)

Definition at line 920 of file soundcard.h.

#define SNDCTL_DSP_GET_RECSRC   __SIOR ('P', 38, int)

Definition at line 917 of file soundcard.h.

#define SNDCTL_DSP_GET_RECSRC_NAMES   __SIOR ('P', 37, oss_mixer_enuminfo)

Definition at line 916 of file soundcard.h.

#define SNDCTL_DSP_GETBLKSIZE   __SIOWR('P', 4, int)

Definition at line 592 of file soundcard.h.

#define SNDCTL_DSP_GETCAPS   __SIOR ('P',15, int)

Definition at line 657 of file soundcard.h.

#define SNDCTL_DSP_GETCHANNELMASK   __SIOWR('P', 64, int)

Definition at line 924 of file soundcard.h.

#define SNDCTL_DSP_GETERROR   __SIOR ('P', 25, audio_errinfo)

Definition at line 775 of file soundcard.h.

#define SNDCTL_DSP_GETFMTS   __SIOR ('P',11, int) /* Returns a mask */

Definition at line 600 of file soundcard.h.

#define SNDCTL_DSP_GETIPTR   __SIOR ('P',17, count_info)

Definition at line 726 of file soundcard.h.

#define SNDCTL_DSP_GETISPACE   __SIOR ('P',13, audio_buf_info)

Definition at line 655 of file soundcard.h.

#define SNDCTL_DSP_GETODELAY   __SIOR ('P', 23, int)

Definition at line 756 of file soundcard.h.

#define SNDCTL_DSP_GETOPTR   __SIOR ('P',18, count_info)

Definition at line 727 of file soundcard.h.

#define SNDCTL_DSP_GETOSPACE   __SIOR ('P',12, audio_buf_info)

Definition at line 654 of file soundcard.h.

#define SNDCTL_DSP_GETOUTVOL   __SIOR ('P', 24, int)

Definition at line 757 of file soundcard.h.

#define SNDCTL_DSP_GETTRIGGER   __SIOR ('P',16, int)

Definition at line 714 of file soundcard.h.

#define SNDCTL_DSP_LOW_WATER   __SIOW ('P', 34, int)

Definition at line 902 of file soundcard.h.

#define SNDCTL_DSP_MAPINBUF   __SIOR ('P', 19, buffmem_desc)

Definition at line 734 of file soundcard.h.

#define SNDCTL_DSP_MAPOUTBUF   __SIOR ('P', 20, buffmem_desc)

Definition at line 735 of file soundcard.h.

#define SNDCTL_DSP_NONBLOCK   __SIO ('P',14) /* Obsolete. Not supported */

Definition at line 656 of file soundcard.h.

#define SNDCTL_DSP_POST   __SIO ('P', 8)

Definition at line 595 of file soundcard.h.

#define SNDCTL_DSP_PROFILE   __SIOW ('P', 23, int)

Definition at line 751 of file soundcard.h.

#define SNDCTL_DSP_READCTL   __SIOWR('P', 26, oss_digital_control)

Definition at line 865 of file soundcard.h.

#define SNDCTL_DSP_RESET   __SIO ('P', 0)

Definition at line 588 of file soundcard.h.

#define SNDCTL_DSP_RESET_INPUT   __SIO ('P', 33)

Definition at line 900 of file soundcard.h.

#define SNDCTL_DSP_RESET_OUTPUT   __SIO ('P', 34)

Definition at line 901 of file soundcard.h.

#define SNDCTL_DSP_SAMPLESIZE   SNDCTL_DSP_SETFMT

Definition at line 593 of file soundcard.h.

#define SNDCTL_DSP_SET_PLAYTGT   __SIOWR('P', 40, int)

Definition at line 922 of file soundcard.h.

#define SNDCTL_DSP_SET_RECSRC   __SIOWR('P', 38, int)

Definition at line 918 of file soundcard.h.

#define SNDCTL_DSP_SETDUPLEX   __SIO ('P', 22)

Definition at line 737 of file soundcard.h.

#define SNDCTL_DSP_SETFMT   __SIOWR('P',5, int) /* Selects ONE fmt */

Definition at line 601 of file soundcard.h.

#define SNDCTL_DSP_SETFRAGMENT   __SIOWR('P',10, int)

Definition at line 597 of file soundcard.h.

#define SNDCTL_DSP_SETOUTVOL   __SIOWR('P', 24, int)

Definition at line 758 of file soundcard.h.

#define SNDCTL_DSP_SETSYNCRO   __SIO ('P', 21)

Definition at line 736 of file soundcard.h.

#define SNDCTL_DSP_SETTRIGGER   __SIOW ('P',16, int)

Definition at line 715 of file soundcard.h.

#define SNDCTL_DSP_SILENCE   __SIO ('P', 31)

Definition at line 898 of file soundcard.h.

#define SNDCTL_DSP_SKIP   __SIO ('P', 32)

Definition at line 899 of file soundcard.h.

#define SNDCTL_DSP_SPEED   __SIOWR('P', 2, int)

Definition at line 590 of file soundcard.h.

#define SNDCTL_DSP_STEREO   __SIOWR('P', 3, int)

Definition at line 591 of file soundcard.h.

#define SNDCTL_DSP_SUBDIVIDE   __SIOWR('P', 9, int)

Definition at line 596 of file soundcard.h.

#define SNDCTL_DSP_SYNC   __SIO ('P', 1)

Definition at line 589 of file soundcard.h.

#define SNDCTL_DSP_SYNCGROUP   __SIOWR('P', 28, oss_syncgroup)

Definition at line 875 of file soundcard.h.

#define SNDCTL_DSP_SYNCSTART   __SIOW ('P', 29, int)

Definition at line 876 of file soundcard.h.

#define SNDCTL_DSP_WRITECTL   __SIOWR('P', 27, oss_digital_control)

Definition at line 866 of file soundcard.h.

#define SNDCTL_FM_4OP_ENABLE   __SIOW ('Q',15, int) /* in=dev# */

Definition at line 171 of file soundcard.h.

#define SNDCTL_FM_LOAD_INSTR   __SIOW ('Q', 7, struct sbi_instrument) /* Obsolete. Don't use!!!!!! */

Definition at line 163 of file soundcard.h.

#define SNDCTL_MIDI_INFO   __SIOWR('Q',12, struct midi_info)

Definition at line 168 of file soundcard.h.

#define SNDCTL_MIDI_MPUCMD   __SIOWR('m', 2, mpu_command_rec)

Definition at line 582 of file soundcard.h.

#define SNDCTL_MIDI_MPUMODE   __SIOWR('m', 1, int)

Definition at line 581 of file soundcard.h.

#define SNDCTL_MIDI_PRETIME   __SIOWR('m', 0, int)

Definition at line 580 of file soundcard.h.

#define SNDCTL_MIX_ENUMINFO   __SIOWR('X', 8, oss_mixer_enuminfo)

Definition at line 1354 of file soundcard.h.

#define SNDCTL_MIX_EXTINFO   __SIOWR('X', 4, oss_mixext)

Definition at line 1349 of file soundcard.h.

#define SNDCTL_MIX_NREXT   __SIOWR('X', 3, int)

Definition at line 1348 of file soundcard.h.

#define SNDCTL_MIX_NRMIX   __SIOR ('X', 2, int)

Definition at line 1347 of file soundcard.h.

#define SNDCTL_MIX_READ   __SIOWR('X', 5, oss_mixer_value)

Definition at line 1350 of file soundcard.h.

#define SNDCTL_MIX_WRITE   __SIOWR('X', 6, oss_mixer_value)

Definition at line 1351 of file soundcard.h.

#define SNDCTL_SEQ_ACTSENSE_ENABLE   __SIO ('Q', 24) /* Enable incoming active sensing messages */

Definition at line 179 of file soundcard.h.

#define SNDCTL_SEQ_CTRLRATE   __SIOWR('Q', 3, int) /* Set/get timer resolution (HZ) */

Definition at line 159 of file soundcard.h.

#define SNDCTL_SEQ_GETINCOUNT   __SIOR ('Q', 5, int)

Definition at line 161 of file soundcard.h.

#define SNDCTL_SEQ_GETOUTCOUNT   __SIOR ('Q', 4, int)

Definition at line 160 of file soundcard.h.

#define SNDCTL_SEQ_GETTIME   __SIOR ('Q',19, int)

Definition at line 174 of file soundcard.h.

#define SNDCTL_SEQ_NRMIDIS   __SIOR ('Q',11, int)

Definition at line 167 of file soundcard.h.

#define SNDCTL_SEQ_NRSYNTHS   __SIOR ('Q',10, int)

Definition at line 166 of file soundcard.h.

#define SNDCTL_SEQ_OUTOFBAND   __SIOW ('Q',18, struct seq_event_rec)

Definition at line 173 of file soundcard.h.

#define SNDCTL_SEQ_PANIC   __SIO ('Q',17)

Definition at line 172 of file soundcard.h.

#define SNDCTL_SEQ_PERCMODE   __SIOW ('Q', 6, int)

Definition at line 162 of file soundcard.h.

#define SNDCTL_SEQ_RESET   __SIO ('Q', 0)

Definition at line 156 of file soundcard.h.

#define SNDCTL_SEQ_RESETSAMPLES   __SIOW ('Q', 9, int)

Definition at line 165 of file soundcard.h.

#define SNDCTL_SEQ_RT_ENABLE   __SIO ('Q', 25) /* Enable other incoming realtime messages */

Definition at line 180 of file soundcard.h.

#define SNDCTL_SEQ_SYNC   __SIO ('Q', 1)

Definition at line 157 of file soundcard.h.

#define SNDCTL_SEQ_TESTMIDI   __SIOW ('Q', 8, int)

Definition at line 164 of file soundcard.h.

#define SNDCTL_SEQ_THRESHOLD   __SIOW ('Q',13, int)

Definition at line 169 of file soundcard.h.

#define SNDCTL_SEQ_TIMING_ENABLE   __SIO ('Q', 23) /* Enable incoming MIDI timing messages */

Definition at line 178 of file soundcard.h.

#define SNDCTL_SYNTH_CONTROL   __SIOWR('Q',21, struct synth_control)

Definition at line 176 of file soundcard.h.

#define SNDCTL_SYNTH_ID   __SIOWR('Q',20, struct synth_info)

Definition at line 175 of file soundcard.h.

#define SNDCTL_SYNTH_INFO   __SIOWR('Q', 2, struct synth_info)

Definition at line 158 of file soundcard.h.

#define SNDCTL_SYNTH_MEMAVL   __SIOWR('Q',14, int) /* in=dev#, out=memsize */

Definition at line 170 of file soundcard.h.

#define SNDCTL_SYNTH_REMOVESAMPLE   __SIOWR('Q',22, struct remove_sample) /* Reserved for future use */

Definition at line 177 of file soundcard.h.

#define SNDCTL_TMR_CONTINUE   __SIO ('T', 4)

Definition at line 203 of file soundcard.h.

#define SNDCTL_TMR_METRONOME   __SIOW ('T', 7, int)

Definition at line 212 of file soundcard.h.

#define SNDCTL_TMR_SELECT   __SIOW ('T', 8, int)

Definition at line 213 of file soundcard.h.

#define SNDCTL_TMR_SOURCE   __SIOWR('T', 6, int)

Definition at line 205 of file soundcard.h.

#define SNDCTL_TMR_START   __SIO ('T', 2)

Definition at line 201 of file soundcard.h.

#define SNDCTL_TMR_STOP   __SIO ('T', 3)

Definition at line 202 of file soundcard.h.

#define SNDCTL_TMR_TEMPO   __SIOWR('T', 5, int)

Definition at line 204 of file soundcard.h.

#define SNDCTL_TMR_TIMEBASE   __SIOWR('T', 1, int)

Definition at line 200 of file soundcard.h.

#define SOUND_CAP_EXCL_INPUT   0x00000001 /* Only one recording source at a time */

Definition at line 1023 of file soundcard.h.

#define SOUND_CAP_LAYOUT_B   0x00000002 /* For internal use only */

Definition at line 1024 of file soundcard.h.

#define SOUND_CAP_NOLEGACY   0x00000004 /* For internal use only */

Definition at line 1025 of file soundcard.h.

#define SOUND_CAP_NORECSRC   0x00000008

Definition at line 1026 of file soundcard.h.

#define SOUND_DEVICE_LABELS
Value:
{"Vol ", "Bass ", "Treble", "Synth", "Pcm ", "Speaker ", "Line ", \
"Mic ", "CD ", "Mix ", "Pcm2 ", "Rec ", "IGain", "OGain", \
"Aux1", "Aux2", "Aux3", "Digital1", "Digital2", "Digital3", \
"Phone", "Mono", "Video", "Radio", "Depth", \
"Rear", "Center", "Surround"}

Definition at line 1003 of file soundcard.h.

#define SOUND_DEVICE_NAMES
Value:
{"vol", "bass", "treble", "synth", "pcm", "speaker", "line", \
"mic", "cd", "mix", "pcm2", "rec", "igain", "ogain", \
"aux1", "aux2", "aux3", "dig1", "dig2", "dig3", \
"phone", "mono", "video", "radio", "depth", \
"rear", "center", "surround"}

Definition at line 1010 of file soundcard.h.

#define SOUND_MASK_ALTPCM   (1 << SOUND_MIXER_ALTPCM)

Definition at line 1046 of file soundcard.h.

#define SOUND_MASK_BASS   (1 << SOUND_MIXER_BASS)

Definition at line 1037 of file soundcard.h.

#define SOUND_MASK_CD   (1 << SOUND_MIXER_CD)

Definition at line 1044 of file soundcard.h.

#define SOUND_MASK_CENTERVOL   (1 << SOUND_MIXER_CENTERVOL)

Definition at line 1063 of file soundcard.h.

#define SOUND_MASK_DEPTH   (1 << SOUND_MIXER_DEPTH)

Definition at line 1060 of file soundcard.h.

#define SOUND_MASK_DIGITAL1   (1 << SOUND_MIXER_DIGITAL1)

Definition at line 1053 of file soundcard.h.

#define SOUND_MASK_DIGITAL2   (1 << SOUND_MIXER_DIGITAL2)

Definition at line 1054 of file soundcard.h.

#define SOUND_MASK_DIGITAL3   (1 << SOUND_MIXER_DIGITAL3)

Definition at line 1055 of file soundcard.h.

#define SOUND_MASK_ENHANCE   (1 << SOUND_MIXER_ENHANCE)

Definition at line 1068 of file soundcard.h.

#define SOUND_MASK_IGAIN   (1 << SOUND_MIXER_IGAIN)

Definition at line 1048 of file soundcard.h.

#define SOUND_MASK_IMIX   (1 << SOUND_MIXER_IMIX)

Definition at line 1045 of file soundcard.h.

#define SOUND_MASK_LINE   (1 << SOUND_MIXER_LINE)

Definition at line 1042 of file soundcard.h.

#define SOUND_MASK_LINE1   (1 << SOUND_MIXER_LINE1)

Definition at line 1050 of file soundcard.h.

#define SOUND_MASK_LINE2   (1 << SOUND_MIXER_LINE2)

Definition at line 1051 of file soundcard.h.

#define SOUND_MASK_LINE3   (1 << SOUND_MIXER_LINE3)

Definition at line 1052 of file soundcard.h.

#define SOUND_MASK_LOUD   (1 << SOUND_MIXER_LOUD)

Definition at line 1069 of file soundcard.h.

#define SOUND_MASK_MIC   (1 << SOUND_MIXER_MIC)

Definition at line 1043 of file soundcard.h.

#define SOUND_MASK_MONITOR   (1 << SOUND_MIXER_MONITOR)

Definition at line 1061 of file soundcard.h.

#define SOUND_MASK_MONO   (1 << SOUND_MIXER_MONO)

Definition at line 1056 of file soundcard.h.

#define SOUND_MASK_MUTE   (1 << SOUND_MIXER_MUTE)

Definition at line 1067 of file soundcard.h.

#define SOUND_MASK_OGAIN   (1 << SOUND_MIXER_OGAIN)

Definition at line 1049 of file soundcard.h.

#define SOUND_MASK_PCM   (1 << SOUND_MIXER_PCM)

Definition at line 1040 of file soundcard.h.

#define SOUND_MASK_PHONE   (1 << SOUND_MIXER_PHONE)

Definition at line 1057 of file soundcard.h.

#define SOUND_MASK_RADIO   (1 << SOUND_MIXER_RADIO)

Definition at line 1058 of file soundcard.h.

#define SOUND_MASK_REARVOL   (1 << SOUND_MIXER_REARVOL)

Definition at line 1062 of file soundcard.h.

#define SOUND_MASK_RECLEV   (1 << SOUND_MIXER_RECLEV)

Definition at line 1047 of file soundcard.h.

#define SOUND_MASK_SPEAKER   (1 << SOUND_MIXER_SPEAKER)

Definition at line 1041 of file soundcard.h.

#define SOUND_MASK_SURRVOL   (1 << SOUND_MIXER_SURRVOL)

Definition at line 1064 of file soundcard.h.

#define SOUND_MASK_SYNTH   (1 << SOUND_MIXER_SYNTH)

Definition at line 1039 of file soundcard.h.

#define SOUND_MASK_TREBLE   (1 << SOUND_MIXER_TREBLE)

Definition at line 1038 of file soundcard.h.

#define SOUND_MASK_VIDEO   (1 << SOUND_MIXER_VIDEO)

Definition at line 1059 of file soundcard.h.

#define SOUND_MASK_VOLUME   (1 << SOUND_MIXER_VOLUME)

Definition at line 1036 of file soundcard.h.

#define SOUND_MIXER_3DSE   _SIOWR('M', 104, int)

Definition at line 1158 of file soundcard.h.

#define SOUND_MIXER_ACCESS   __SIOWR('M', 102, mixer_record)

Definition at line 1152 of file soundcard.h.

#define SOUND_MIXER_AGC   _SIOWR('M', 103, int)

Definition at line 1157 of file soundcard.h.

#define SOUND_MIXER_ALTPCM   10

Definition at line 962 of file soundcard.h.

#define SOUND_MIXER_BASS   1

Definition at line 953 of file soundcard.h.

#define SOUND_MIXER_CAPS   0xfc

Definition at line 1022 of file soundcard.h.

#define SOUND_MIXER_CD   8

Definition at line 960 of file soundcard.h.

#define SOUND_MIXER_CENTERVOL   26 /* Center/LFE speaker vol */

Definition at line 984 of file soundcard.h.

#define SOUND_MIXER_DEPTH   24 /* Surround depth */

Definition at line 982 of file soundcard.h.

#define SOUND_MIXER_DEVMASK   0xfe /* Arg contains a bit for each supported device */

Definition at line 1020 of file soundcard.h.

#define SOUND_MIXER_DIGITAL1   17 /* Digital I/O 1 */

Definition at line 975 of file soundcard.h.

#define SOUND_MIXER_DIGITAL2   18 /* Digital I/O 2 */

Definition at line 976 of file soundcard.h.

#define SOUND_MIXER_DIGITAL3   19 /* Digital I/O 3 */

Definition at line 977 of file soundcard.h.

#define SOUND_MIXER_ENHANCE   SOUND_MIXER_NONE

Definition at line 999 of file soundcard.h.

#define SOUND_MIXER_GETLEVELS   __SIOWR('M', 116, mixer_vol_table)

Definition at line 1184 of file soundcard.h.

#define SOUND_MIXER_IGAIN   12 /* Input gain */

Definition at line 964 of file soundcard.h.

#define SOUND_MIXER_IMIX   9 /* Recording monitor */

Definition at line 961 of file soundcard.h.

#define SOUND_MIXER_INFO   __SIOR ('M', 101, mixer_info)

Definition at line 1141 of file soundcard.h.

#define SOUND_MIXER_LINE   6

Definition at line 958 of file soundcard.h.

#define SOUND_MIXER_LINE1   14 /* Input source 1 (aux1) */

Definition at line 972 of file soundcard.h.

#define SOUND_MIXER_LINE2   15 /* Input source 2 (aux2) */

Definition at line 973 of file soundcard.h.

#define SOUND_MIXER_LINE3   16 /* Input source 3 (line) */

Definition at line 974 of file soundcard.h.

#define SOUND_MIXER_LOUD   SOUND_MIXER_NONE

Definition at line 1001 of file soundcard.h.

#define SOUND_MIXER_MIC   7

Definition at line 959 of file soundcard.h.

#define SOUND_MIXER_MONO   21 /* Mono Output */

Definition at line 979 of file soundcard.h.

#define SOUND_MIXER_MUTE   SOUND_MIXER_NONE

Definition at line 1000 of file soundcard.h.

#define SOUND_MIXER_NONE   31

Definition at line 993 of file soundcard.h.

#define SOUND_MIXER_NRDEVICES   28

Definition at line 951 of file soundcard.h.

#define SOUND_MIXER_OGAIN   13 /* Output gain */

Definition at line 965 of file soundcard.h.

#define SOUND_MIXER_OUTMASK   0xf9 /* Arg contains a bit for each supported input source to output */

Definition at line 1031 of file soundcard.h.

#define SOUND_MIXER_OUTSRC   0xfa /* Arg contains a bit for each input source to output */

Definition at line 1030 of file soundcard.h.

#define SOUND_MIXER_PCM   4

Definition at line 956 of file soundcard.h.

#define SOUND_MIXER_PHONE   20 /* Phone */

Definition at line 978 of file soundcard.h.

#define SOUND_MIXER_PRIVATE1   __SIOWR('M', 111, int)

Definition at line 1163 of file soundcard.h.

#define SOUND_MIXER_PRIVATE2   __SIOWR('M', 112, int)

Definition at line 1164 of file soundcard.h.

#define SOUND_MIXER_PRIVATE3   __SIOWR('M', 113, int)

Definition at line 1165 of file soundcard.h.

#define SOUND_MIXER_PRIVATE4   __SIOWR('M', 114, int)

Definition at line 1166 of file soundcard.h.

#define SOUND_MIXER_PRIVATE5   __SIOWR('M', 115, int)

Definition at line 1167 of file soundcard.h.

#define SOUND_MIXER_RADIO   23 /* Radio in */

Definition at line 981 of file soundcard.h.

#define SOUND_MIXER_READ_ALTPCM   MIXER_READ(SOUND_MIXER_ALTPCM)

Definition at line 1082 of file soundcard.h.

#define SOUND_MIXER_READ_BASS   MIXER_READ(SOUND_MIXER_BASS)

Definition at line 1073 of file soundcard.h.

#define SOUND_MIXER_READ_CAPS   MIXER_READ(SOUND_MIXER_CAPS)

Definition at line 1099 of file soundcard.h.

#define SOUND_MIXER_READ_CD   MIXER_READ(SOUND_MIXER_CD)

Definition at line 1080 of file soundcard.h.

#define SOUND_MIXER_READ_DEVMASK   MIXER_READ(SOUND_MIXER_DEVMASK)

Definition at line 1096 of file soundcard.h.

#define SOUND_MIXER_READ_ENHANCE   MIXER_READ(SOUND_MIXER_ENHANCE)

Definition at line 1092 of file soundcard.h.

#define SOUND_MIXER_READ_IGAIN   MIXER_READ(SOUND_MIXER_IGAIN)

Definition at line 1084 of file soundcard.h.

#define SOUND_MIXER_READ_IMIX   MIXER_READ(SOUND_MIXER_IMIX)

Definition at line 1081 of file soundcard.h.

#define SOUND_MIXER_READ_LINE   MIXER_READ(SOUND_MIXER_LINE)

Definition at line 1078 of file soundcard.h.

#define SOUND_MIXER_READ_LINE1   MIXER_READ(SOUND_MIXER_LINE1)

Definition at line 1086 of file soundcard.h.

#define SOUND_MIXER_READ_LINE2   MIXER_READ(SOUND_MIXER_LINE2)

Definition at line 1087 of file soundcard.h.

#define SOUND_MIXER_READ_LINE3   MIXER_READ(SOUND_MIXER_LINE3)

Definition at line 1088 of file soundcard.h.

#define SOUND_MIXER_READ_LOUD   MIXER_READ(SOUND_MIXER_LOUD)

Definition at line 1093 of file soundcard.h.

#define SOUND_MIXER_READ_MIC   MIXER_READ(SOUND_MIXER_MIC)

Definition at line 1079 of file soundcard.h.

#define SOUND_MIXER_READ_MONGAIN   __SIOR ('M', 120, int)

Definition at line 1205 of file soundcard.h.

#define SOUND_MIXER_READ_MUTE   MIXER_READ(SOUND_MIXER_MUTE)

Definition at line 1091 of file soundcard.h.

#define SOUND_MIXER_READ_OGAIN   MIXER_READ(SOUND_MIXER_OGAIN)

Definition at line 1085 of file soundcard.h.

#define SOUND_MIXER_READ_PCM   MIXER_READ(SOUND_MIXER_PCM)

Definition at line 1076 of file soundcard.h.

#define SOUND_MIXER_READ_RECGAIN   __SIOR ('M', 119, int)

Definition at line 1203 of file soundcard.h.

#define SOUND_MIXER_READ_RECLEV   MIXER_READ(SOUND_MIXER_RECLEV)

Definition at line 1083 of file soundcard.h.

#define SOUND_MIXER_READ_RECMASK   MIXER_READ(SOUND_MIXER_RECMASK)

Definition at line 1097 of file soundcard.h.

#define SOUND_MIXER_READ_RECSRC   MIXER_READ(SOUND_MIXER_RECSRC)

Definition at line 1095 of file soundcard.h.

#define SOUND_MIXER_READ_SPEAKER   MIXER_READ(SOUND_MIXER_SPEAKER)

Definition at line 1077 of file soundcard.h.

#define SOUND_MIXER_READ_STEREODEVS   MIXER_READ(SOUND_MIXER_STEREODEVS)

Definition at line 1098 of file soundcard.h.

#define SOUND_MIXER_READ_SYNTH   MIXER_READ(SOUND_MIXER_SYNTH)

Definition at line 1075 of file soundcard.h.

#define SOUND_MIXER_READ_TREBLE   MIXER_READ(SOUND_MIXER_TREBLE)

Definition at line 1074 of file soundcard.h.

#define SOUND_MIXER_READ_VOLUME   MIXER_READ(SOUND_MIXER_VOLUME)

Definition at line 1072 of file soundcard.h.

#define SOUND_MIXER_REARVOL   25 /* Rear/Surround speaker vol */

Definition at line 983 of file soundcard.h.

#define SOUND_MIXER_RECLEV   11 /* Recording level */

Definition at line 963 of file soundcard.h.

#define SOUND_MIXER_RECMASK   0xfd /* Arg contains a bit for each supported recording source */

Definition at line 1021 of file soundcard.h.

#define SOUND_MIXER_RECSRC   0xff /* Arg contains a bit for each recording source */

Definition at line 1019 of file soundcard.h.

#define SOUND_MIXER_RESERVED   __SIOWR('M', 121, oss_reserved_t)

Definition at line 1212 of file soundcard.h.

#define SOUND_MIXER_SETLEVELS   __SIOWR('M', 117, mixer_vol_table)

Definition at line 1185 of file soundcard.h.

#define SOUND_MIXER_SPEAKER   5

Definition at line 957 of file soundcard.h.

#define SOUND_MIXER_STEREODEVS   0xfb /* Mixer channels supporting stereo */

Definition at line 1027 of file soundcard.h.

#define SOUND_MIXER_SURRVOL   27 /* Mid-Surround (8speaker) vol */

Definition at line 985 of file soundcard.h.

#define SOUND_MIXER_SYNTH   3

Definition at line 955 of file soundcard.h.

#define SOUND_MIXER_TREBLE   2

Definition at line 954 of file soundcard.h.

#define SOUND_MIXER_VIDEO   22 /* Video/TV (audio) in */

Definition at line 980 of file soundcard.h.

#define SOUND_MIXER_VOLUME   0

Definition at line 952 of file soundcard.h.

#define SOUND_MIXER_WRITE_ALTPCM   MIXER_WRITE(SOUND_MIXER_ALTPCM)

Definition at line 1112 of file soundcard.h.

#define SOUND_MIXER_WRITE_BASS   MIXER_WRITE(SOUND_MIXER_BASS)

Definition at line 1103 of file soundcard.h.

#define SOUND_MIXER_WRITE_CD   MIXER_WRITE(SOUND_MIXER_CD)

Definition at line 1110 of file soundcard.h.

#define SOUND_MIXER_WRITE_ENHANCE   MIXER_WRITE(SOUND_MIXER_ENHANCE)

Definition at line 1122 of file soundcard.h.

#define SOUND_MIXER_WRITE_IGAIN   MIXER_WRITE(SOUND_MIXER_IGAIN)

Definition at line 1114 of file soundcard.h.

#define SOUND_MIXER_WRITE_IMIX   MIXER_WRITE(SOUND_MIXER_IMIX)

Definition at line 1111 of file soundcard.h.

#define SOUND_MIXER_WRITE_LINE   MIXER_WRITE(SOUND_MIXER_LINE)

Definition at line 1108 of file soundcard.h.

#define SOUND_MIXER_WRITE_LINE1   MIXER_WRITE(SOUND_MIXER_LINE1)

Definition at line 1116 of file soundcard.h.

#define SOUND_MIXER_WRITE_LINE2   MIXER_WRITE(SOUND_MIXER_LINE2)

Definition at line 1117 of file soundcard.h.

#define SOUND_MIXER_WRITE_LINE3   MIXER_WRITE(SOUND_MIXER_LINE3)

Definition at line 1118 of file soundcard.h.

#define SOUND_MIXER_WRITE_LOUD   MIXER_WRITE(SOUND_MIXER_LOUD)

Definition at line 1123 of file soundcard.h.

#define SOUND_MIXER_WRITE_MIC   MIXER_WRITE(SOUND_MIXER_MIC)

Definition at line 1109 of file soundcard.h.

#define SOUND_MIXER_WRITE_MONGAIN   __SIOWR('M', 120, int)

Definition at line 1206 of file soundcard.h.

#define SOUND_MIXER_WRITE_MUTE   MIXER_WRITE(SOUND_MIXER_MUTE)

Definition at line 1121 of file soundcard.h.

#define SOUND_MIXER_WRITE_OGAIN   MIXER_WRITE(SOUND_MIXER_OGAIN)

Definition at line 1115 of file soundcard.h.

#define SOUND_MIXER_WRITE_PCM   MIXER_WRITE(SOUND_MIXER_PCM)

Definition at line 1106 of file soundcard.h.

#define SOUND_MIXER_WRITE_RECGAIN   __SIOWR('M', 119, int)

Definition at line 1204 of file soundcard.h.

#define SOUND_MIXER_WRITE_RECLEV   MIXER_WRITE(SOUND_MIXER_RECLEV)

Definition at line 1113 of file soundcard.h.

#define SOUND_MIXER_WRITE_RECSRC   MIXER_WRITE(SOUND_MIXER_RECSRC)

Definition at line 1125 of file soundcard.h.

#define SOUND_MIXER_WRITE_SPEAKER   MIXER_WRITE(SOUND_MIXER_SPEAKER)

Definition at line 1107 of file soundcard.h.

#define SOUND_MIXER_WRITE_SYNTH   MIXER_WRITE(SOUND_MIXER_SYNTH)

Definition at line 1105 of file soundcard.h.

#define SOUND_MIXER_WRITE_TREBLE   MIXER_WRITE(SOUND_MIXER_TREBLE)

Definition at line 1104 of file soundcard.h.

#define SOUND_MIXER_WRITE_VOLUME   MIXER_WRITE(SOUND_MIXER_VOLUME)

Definition at line 1102 of file soundcard.h.

#define SOUND_OLD_MIXER_INFO   __SIOR ('M', 101, _old_mixer_info)

Definition at line 1142 of file soundcard.h.

#define SOUND_ONOFF_MAX   30

Definition at line 990 of file soundcard.h.

#define SOUND_ONOFF_MIN   28

Definition at line 989 of file soundcard.h.

#define SOUND_VERSION   0x039999

Definition at line 49 of file soundcard.h.

#define SPD_RQ_PASSTHROUGH   1

Definition at line 821 of file soundcard.h.

#define SYNTH_CAP_INPUT   0x00000004 /* Input (MIDI) device */

Definition at line 549 of file soundcard.h.

#define SYNTH_CAP_OPL3   0x00000002 /* Set if OPL3 supported */

Definition at line 548 of file soundcard.h.

#define SYNTH_CAP_PERCMODE   0x00000001 /* No longer used */

Definition at line 547 of file soundcard.h.

#define SYNTH_TYPE_FM   0

Definition at line 529 of file soundcard.h.

#define SYNTH_TYPE_MIDI   2 /* Midi interface */

Definition at line 531 of file soundcard.h.

#define SYNTH_TYPE_SAMPLE   1

Definition at line 530 of file soundcard.h.

#define SYSEX_PATCH   _PATCHKEY(0x05)

Definition at line 342 of file soundcard.h.

#define SYSINFO_FILL_SIZE   256

Definition at line 1217 of file soundcard.h.

#define TMR_CLOCK   9 /* MIDI clock */

Definition at line 1416 of file soundcard.h.

#define TMR_CONTINUE   5

Definition at line 1413 of file soundcard.h.

#define TMR_ECHO   8

Definition at line 1415 of file soundcard.h.

#define TMR_EXTERNAL   0x00000002

Definition at line 207 of file soundcard.h.

#define TMR_INTERNAL   0x00000001

Definition at line 206 of file soundcard.h.

#define TMR_MODE_CLS   0x00000040

Definition at line 210 of file soundcard.h.

#define TMR_MODE_FSK   0x00000020

Definition at line 209 of file soundcard.h.

#define TMR_MODE_MIDI   0x00000010

Definition at line 208 of file soundcard.h.

#define TMR_MODE_SMPTE   0x00000080

Definition at line 211 of file soundcard.h.

#define TMR_SPP   10 /* Song position pointer */

Definition at line 1417 of file soundcard.h.

#define TMR_START   4

Definition at line 1412 of file soundcard.h.

#define TMR_STOP   3

Definition at line 1411 of file soundcard.h.

#define TMR_TEMPO   6

Definition at line 1414 of file soundcard.h.

#define TMR_TIMESIG   11 /* Time signature */

Definition at line 1418 of file soundcard.h.

#define TMR_WAIT_ABS   2 /* Absolute time since TMR_START */

Definition at line 1410 of file soundcard.h.

#define TMR_WAIT_REL   1 /* Time relative to the prev time */

Definition at line 1409 of file soundcard.h.

#define VAL_CBITIN   0x00000001

Definition at line 806 of file soundcard.h.

#define VAL_CBITOUT   0x00000004

Definition at line 808 of file soundcard.h.

#define VAL_INBITS   0x00000080

Definition at line 813 of file soundcard.h.

#define VAL_IRATE   0x00000020

Definition at line 811 of file soundcard.h.

#define VAL_ISTATUS   0x00000010

Definition at line 810 of file soundcard.h.

#define VAL_ORATE   0x00000040

Definition at line 812 of file soundcard.h.

#define VAL_OUTBITS   0x00000100

Definition at line 814 of file soundcard.h.

Definition at line 818 of file soundcard.h.

#define VAL_OUTSEL   0x00000400

Definition at line 816 of file soundcard.h.

#define VAL_REQUEST   0x00000200

Definition at line 815 of file soundcard.h.

#define VAL_UBITIN   0x00000002

Definition at line 807 of file soundcard.h.

#define VAL_UBITOUT   0x00000008

Definition at line 809 of file soundcard.h.

#define VBIT_NOT_INDICATED   0

Definition at line 849 of file soundcard.h.

#define VBIT_OFF   1

Definition at line 850 of file soundcard.h.

#define VBIT_ON   2

Definition at line 851 of file soundcard.h.

#define VOL_METHOD_ADAGIO   1

Definition at line 472 of file soundcard.h.

#define VOL_METHOD_LINEAR   2

Definition at line 473 of file soundcard.h.

#define WAVE_16_BITS   0x01 /* bit 0 = 8 or 16 bit wave data. */

Definition at line 264 of file soundcard.h.

#define WAVE_BIDIR_LOOP   0x08 /* bit 3 = Set is bidirectional looping. */

Definition at line 267 of file soundcard.h.

#define WAVE_ENVELOPES   0x40 /* bit 6 = Enable envelopes - 1 */

Definition at line 270 of file soundcard.h.

#define WAVE_FAST_RELEASE   0x80 /* bit 7 = Shut off immediately after note off */

Definition at line 271 of file soundcard.h.

#define WAVE_FRACTIONS   0x00080000 /* Fraction information is valid */

Definition at line 277 of file soundcard.h.

#define WAVE_LOOP_BACK   0x10 /* bit 4 = Set is looping backward. */

Definition at line 268 of file soundcard.h.

#define WAVE_LOOPING   0x04 /* bit 2 = looping enabled-1. */

Definition at line 266 of file soundcard.h.

#define WAVE_MULAW   0x20000000 /* For future use */

Definition at line 280 of file soundcard.h.

#define WAVE_PATCH   _PATCHKEY(0x04)

Definition at line 252 of file soundcard.h.

#define WAVE_ROM   0x40000000 /* For future use */

Definition at line 279 of file soundcard.h.

#define WAVE_SCALE   0x00040000 /* The scaling info is valid */

Definition at line 276 of file soundcard.h.

#define WAVE_SUSTAIN_ON   0x20 /* bit 5 = Turn sustaining on. (Env. pts. 3) */

Definition at line 269 of file soundcard.h.

#define WAVE_TREMOLO   0x00020000 /* The tremolo info is valid */

Definition at line 275 of file soundcard.h.

#define WAVE_UNSIGNED   0x02 /* bit 1 = Signed - Unsigned data. */

Definition at line 265 of file soundcard.h.

#define WAVE_VIBRATO   0x00010000 /* The vibrato info is valid */

Definition at line 274 of file soundcard.h.

#define WAVEFRONT_PATCH   _PATCHKEY(0x06)

Definition at line 254 of file soundcard.h.

Typedef Documentation

typedef struct audio_errinfo audio_errinfo
typedef struct buffmem_desc buffmem_desc
typedef struct count_info count_info
typedef struct mixer_info mixer_info
typedef unsigned char mixer_record[128]

Definition at line 1150 of file soundcard.h.

typedef struct oss_audioinfo oss_audioinfo
typedef struct oss_mixext oss_mixext
typedef unsigned char oss_reserved_t[512]

Definition at line 1211 of file soundcard.h.

typedef struct oss_syncgroup oss_syncgroup
typedef struct oss_sysinfo oss_sysinfo
typedef struct remove_sample remove_sample
typedef unsigned char sbi_instr_data[32]

Definition at line 512 of file soundcard.h.

typedef struct seq_event_rec seq_event_rec
typedef struct synth_control synth_control

Function Documentation

EXTERNC void OSS_drum_caching ( int  dev,
int  chn,
int  patch,
int  fd,
unsigned char *  buf,
int  buflen 
)
EXTERNC int OSS_init ( int  seqfd,
int  buflen 
)
EXTERNC void OSS_patch_caching ( int  dev,
int  chn,
int  patch,
int  fd,
unsigned char *  buf,
int  buflen 
)
EXTERNC void OSS_seq_advbuf ( int  len,
int  fd,
unsigned char *  buf,
int  buflen 
)
EXTERNC void OSS_seq_needbuf ( int  len,
int  fd,
unsigned char *  buf,
int  buflen 
)
EXTERNC void OSS_seqbuf_dump ( int  fd,
unsigned char *  buf,
int  buflen 
)
EXTERNC void OSS_write_patch ( int  fd,
unsigned char *  buf,
int  len 
)
EXTERNC int OSS_write_patch2 ( int  fd,
unsigned char *  buf,
int  len 
)
void seqbuf_dump ( void  )