- Main Page
- Related Pages
- Modules
- Data Structures
- Files
- Examples

- File List
- Globals

# /builddir/build/BUILD/alsa-lib-1.1.0/include/asoundef.h

Go to the documentation of this file.

    00001
    00011 /*
    00012  *   This library is free software; you can redistribute it and/or modify
    00013  *   it under the terms of the GNU Lesser General Public License as
    00014  *   published by the Free Software Foundation; either version 2.1 of
    00015  *   the License, or (at your option) any later version.
    00016  *
    00017  *   This program is distributed in the hope that it will be useful,
    00018  *   but WITHOUT ANY WARRANTY; without even the implied warranty of
    00019  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    00020  *   GNU Lesser General Public License for more details.
    00021  *
    00022  *   You should have received a copy of the GNU Lesser General Public
    00023  *   License along with this library; if not, write to the Free Software
    00024  *   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
    00025  *
    00026  */
    00027
    00028 #ifndef __ALSA_ASOUNDEF_H
    00029 #define __ALSA_ASOUNDEF_H
    00030
    00031 #ifdef __cplusplus
    00032 extern "C" {
    00033 #endif
    00034
    00041 #define IEC958_AES0_PROFESSIONAL        (1<<0)
    00042 #define IEC958_AES0_NONAUDIO            (1<<1)
    00043 #define IEC958_AES0_PRO_EMPHASIS        (7<<2)
    00044 #define IEC958_AES0_PRO_EMPHASIS_NOTID  (0<<2)
    00045 #define IEC958_AES0_PRO_EMPHASIS_NONE   (1<<2)
    00046 #define IEC958_AES0_PRO_EMPHASIS_5015   (3<<2)
    00047 #define IEC958_AES0_PRO_EMPHASIS_CCITT  (7<<2)
    00048 #define IEC958_AES0_PRO_FREQ_UNLOCKED   (1<<5)
    00049 #define IEC958_AES0_PRO_FS              (3<<6)
    00050 #define IEC958_AES0_PRO_FS_NOTID        (0<<6)
    00051 #define IEC958_AES0_PRO_FS_44100        (1<<6)
    00052 #define IEC958_AES0_PRO_FS_48000        (2<<6)
    00053 #define IEC958_AES0_PRO_FS_32000        (3<<6)
    00054 #define IEC958_AES0_CON_NOT_COPYRIGHT   (1<<2)
    00055 #define IEC958_AES0_CON_EMPHASIS        (7<<3)
    00056 #define IEC958_AES0_CON_EMPHASIS_NONE   (0<<3)
    00057 #define IEC958_AES0_CON_EMPHASIS_5015   (1<<3)
    00058 #define IEC958_AES0_CON_MODE            (3<<6)
    00059 #define IEC958_AES1_PRO_MODE            (15<<0)
    00060 #define IEC958_AES1_PRO_MODE_NOTID      (0<<0)
    00061 #define IEC958_AES1_PRO_MODE_STEREOPHONIC (2<<0)
    00062 #define IEC958_AES1_PRO_MODE_SINGLE     (4<<0)
    00063 #define IEC958_AES1_PRO_MODE_TWO        (8<<0)
    00064 #define IEC958_AES1_PRO_MODE_PRIMARY    (12<<0)
    00065 #define IEC958_AES1_PRO_MODE_BYTE3      (15<<0)
    00066 #define IEC958_AES1_PRO_USERBITS        (15<<4)
    00067 #define IEC958_AES1_PRO_USERBITS_NOTID  (0<<4)
    00068 #define IEC958_AES1_PRO_USERBITS_192    (8<<4)
    00069 #define IEC958_AES1_PRO_USERBITS_UDEF   (12<<4)
    00070 #define IEC958_AES1_CON_CATEGORY        0x7f
    00071 #define IEC958_AES1_CON_GENERAL         0x00
    00072 #define IEC958_AES1_CON_LASEROPT_MASK   0x07
    00073 #define IEC958_AES1_CON_LASEROPT_ID     0x01
    00074 #define IEC958_AES1_CON_IEC908_CD       (IEC958_AES1_CON_LASEROPT_ID|0x00)
    00075 #define IEC958_AES1_CON_NON_IEC908_CD   (IEC958_AES1_CON_LASEROPT_ID|0x08)
    00076 #define IEC958_AES1_CON_MINI_DISC       (IEC958_AES1_CON_LASEROPT_ID|0x48)
    00077 #define IEC958_AES1_CON_DVD             (IEC958_AES1_CON_LASEROPT_ID|0x18)
    00078 #define IEC958_AES1_CON_LASTEROPT_OTHER (IEC958_AES1_CON_LASEROPT_ID|0x78)
    00079 #define IEC958_AES1_CON_DIGDIGCONV_MASK 0x07
    00080 #define IEC958_AES1_CON_DIGDIGCONV_ID   0x02
    00081 #define IEC958_AES1_CON_PCM_CODER       (IEC958_AES1_CON_DIGDIGCONV_ID|0x00)
    00082 #define IEC958_AES1_CON_MIXER           (IEC958_AES1_CON_DIGDIGCONV_ID|0x10)
    00083 #define IEC958_AES1_CON_RATE_CONVERTER  (IEC958_AES1_CON_DIGDIGCONV_ID|0x18)
    00084 #define IEC958_AES1_CON_SAMPLER         (IEC958_AES1_CON_DIGDIGCONV_ID|0x20)
    00085 #define IEC958_AES1_CON_DSP             (IEC958_AES1_CON_DIGDIGCONV_ID|0x28)
    00086 #define IEC958_AES1_CON_DIGDIGCONV_OTHER (IEC958_AES1_CON_DIGDIGCONV_ID|0x78)
    00087 #define IEC958_AES1_CON_MAGNETIC_MASK   0x07
    00088 #define IEC958_AES1_CON_MAGNETIC_ID     0x03
    00089 #define IEC958_AES1_CON_DAT             (IEC958_AES1_CON_MAGNETIC_ID|0x00)
    00090 #define IEC958_AES1_CON_VCR             (IEC958_AES1_CON_MAGNETIC_ID|0x08)
    00091 #define IEC958_AES1_CON_DCC             (IEC958_AES1_CON_MAGNETIC_ID|0x40)
    00092 #define IEC958_AES1_CON_MAGNETIC_DISC   (IEC958_AES1_CON_MAGNETIC_ID|0x18)
    00093 #define IEC958_AES1_CON_MAGNETIC_OTHER  (IEC958_AES1_CON_MAGNETIC_ID|0x78)
    00094 #define IEC958_AES1_CON_BROADCAST1_MASK 0x07
    00095 #define IEC958_AES1_CON_BROADCAST1_ID   0x04
    00096 #define IEC958_AES1_CON_DAB_JAPAN       (IEC958_AES1_CON_BROADCAST1_ID|0x00)
    00097 #define IEC958_AES1_CON_DAB_EUROPE      (IEC958_AES1_CON_BROADCAST1_ID|0x08)
    00098 #define IEC958_AES1_CON_DAB_USA         (IEC958_AES1_CON_BROADCAST1_ID|0x60)
    00099 #define IEC958_AES1_CON_SOFTWARE        (IEC958_AES1_CON_BROADCAST1_ID|0x40)
    00100 #define IEC958_AES1_CON_IEC62105        (IEC958_AES1_CON_BROADCAST1_ID|0x20)
    00101 #define IEC958_AES1_CON_BROADCAST1_OTHER (IEC958_AES1_CON_BROADCAST1_ID|0x78)
    00102 #define IEC958_AES1_CON_BROADCAST2_MASK 0x0f
    00103 #define IEC958_AES1_CON_BROADCAST2_ID   0x0e
    00104 #define IEC958_AES1_CON_MUSICAL_MASK    0x07
    00105 #define IEC958_AES1_CON_MUSICAL_ID      0x05
    00106 #define IEC958_AES1_CON_SYNTHESIZER     (IEC958_AES1_CON_MUSICAL_ID|0x00)
    00107 #define IEC958_AES1_CON_MICROPHONE      (IEC958_AES1_CON_MUSICAL_ID|0x08)
    00108 #define IEC958_AES1_CON_MUSICAL_OTHER   (IEC958_AES1_CON_MUSICAL_ID|0x78)
    00109 #define IEC958_AES1_CON_ADC_MASK        0x1f
    00110 #define IEC958_AES1_CON_ADC_ID          0x06
    00111 #define IEC958_AES1_CON_ADC             (IEC958_AES1_CON_ADC_ID|0x00)
    00112 #define IEC958_AES1_CON_ADC_OTHER       (IEC958_AES1_CON_ADC_ID|0x60)
    00113 #define IEC958_AES1_CON_ADC_COPYRIGHT_MASK 0x1f
    00114 #define IEC958_AES1_CON_ADC_COPYRIGHT_ID 0x16
    00115 #define IEC958_AES1_CON_ADC_COPYRIGHT   (IEC958_AES1_CON_ADC_COPYRIGHT_ID|0x00)
    00116 #define IEC958_AES1_CON_ADC_COPYRIGHT_OTHER (IEC958_AES1_CON_ADC_COPYRIGHT_ID|0x60)
    00117 #define IEC958_AES1_CON_SOLIDMEM_MASK   0x0f
    00118 #define IEC958_AES1_CON_SOLIDMEM_ID     0x08
    00119 #define IEC958_AES1_CON_SOLIDMEM_DIGITAL_RECORDER_PLAYER (IEC958_AES1_CON_SOLIDMEM_ID|0x00)
    00120 #define IEC958_AES1_CON_SOLIDMEM_OTHER  (IEC958_AES1_CON_SOLIDMEM_ID|0x70)
    00121 #define IEC958_AES1_CON_EXPERIMENTAL    0x40
    00122 #define IEC958_AES1_CON_ORIGINAL        (1<<7)
    00123 #define IEC958_AES2_PRO_SBITS           (7<<0)
    00124 #define IEC958_AES2_PRO_SBITS_20        (2<<0)
    00125 #define IEC958_AES2_PRO_SBITS_24        (4<<0)
    00126 #define IEC958_AES2_PRO_SBITS_UDEF      (6<<0)
    00127 #define IEC958_AES2_PRO_WORDLEN         (7<<3)
    00128 #define IEC958_AES2_PRO_WORDLEN_NOTID   (0<<3)
    00129 #define IEC958_AES2_PRO_WORDLEN_22_18   (2<<3)
    00130 #define IEC958_AES2_PRO_WORDLEN_23_19   (4<<3)
    00131 #define IEC958_AES2_PRO_WORDLEN_24_20   (5<<3)
    00132 #define IEC958_AES2_PRO_WORDLEN_20_16   (6<<3)
    00133 #define IEC958_AES2_CON_SOURCE          (15<<0)
    00134 #define IEC958_AES2_CON_SOURCE_UNSPEC   (0<<0)
    00135 #define IEC958_AES2_CON_CHANNEL         (15<<4)
    00136 #define IEC958_AES2_CON_CHANNEL_UNSPEC  (0<<4)
    00137 #define IEC958_AES3_CON_FS              (15<<0)
    00138 #define IEC958_AES3_CON_FS_44100        (0<<0)
    00139 #define IEC958_AES3_CON_FS_NOTID        (1<<0)
    00140 #define IEC958_AES3_CON_FS_48000        (2<<0)
    00141 #define IEC958_AES3_CON_FS_32000        (3<<0)
    00142 #define IEC958_AES3_CON_FS_22050        (4<<0)
    00143 #define IEC958_AES3_CON_FS_24000        (6<<0)
    00144 #define IEC958_AES3_CON_FS_88200        (8<<0)
    00145 #define IEC958_AES3_CON_FS_768000       (9<<0)
    00146 #define IEC958_AES3_CON_FS_96000        (10<<0)
    00147 #define IEC958_AES3_CON_FS_176400       (12<<0)
    00148 #define IEC958_AES3_CON_FS_192000       (14<<0)
    00149 #define IEC958_AES3_CON_CLOCK           (3<<4)
    00150 #define IEC958_AES3_CON_CLOCK_1000PPM   (0<<4)
    00151 #define IEC958_AES3_CON_CLOCK_50PPM     (1<<4)
    00152 #define IEC958_AES3_CON_CLOCK_VARIABLE  (2<<4)
    00153 #define IEC958_AES4_CON_MAX_WORDLEN_24  (1<<0)
    00154 #define IEC958_AES4_CON_WORDLEN         (7<<1)
    00155 #define IEC958_AES4_CON_WORDLEN_NOTID   (0<<1)
    00156 #define IEC958_AES4_CON_WORDLEN_20_16   (1<<1)
    00157 #define IEC958_AES4_CON_WORDLEN_22_18   (2<<1)
    00158 #define IEC958_AES4_CON_WORDLEN_23_19   (4<<1)
    00159 #define IEC958_AES4_CON_WORDLEN_24_20   (5<<1)
    00160 #define IEC958_AES4_CON_WORDLEN_21_17   (6<<1)
    00161 #define IEC958_AES4_CON_ORIGFS          (15<<4)
    00162 #define IEC958_AES4_CON_ORIGFS_NOTID    (0<<4)
    00163 #define IEC958_AES4_CON_ORIGFS_192000   (1<<4)
    00164 #define IEC958_AES4_CON_ORIGFS_12000    (2<<4)
    00165 #define IEC958_AES4_CON_ORIGFS_176400   (3<<4)
    00166 #define IEC958_AES4_CON_ORIGFS_96000    (5<<4)
    00167 #define IEC958_AES4_CON_ORIGFS_8000     (6<<4)
    00168 #define IEC958_AES4_CON_ORIGFS_88200    (7<<4)
    00169 #define IEC958_AES4_CON_ORIGFS_16000    (8<<4)
    00170 #define IEC958_AES4_CON_ORIGFS_24000    (9<<4)
    00171 #define IEC958_AES4_CON_ORIGFS_11025    (10<<4)
    00172 #define IEC958_AES4_CON_ORIGFS_22050    (11<<4)
    00173 #define IEC958_AES4_CON_ORIGFS_32000    (12<<4)
    00174 #define IEC958_AES4_CON_ORIGFS_48000    (13<<4)
    00175 #define IEC958_AES4_CON_ORIGFS_44100    (15<<4)
    00176 #define IEC958_AES5_CON_CGMSA           (3<<0)
    00177 #define IEC958_AES5_CON_CGMSA_COPYFREELY (0<<0)
    00178 #define IEC958_AES5_CON_CGMSA_COPYONCE  (1<<0)
    00179 #define IEC958_AES5_CON_CGMSA_COPYNOMORE (2<<0)
    00180 #define IEC958_AES5_CON_CGMSA_COPYNEVER (3<<0)
    00190 #define MIDI_CHANNELS                   16
    00191 #define MIDI_GM_DRUM_CHANNEL            (10-1)
    00199 #define MIDI_CMD_NOTE_OFF               0x80
    00200 #define MIDI_CMD_NOTE_ON                0x90
    00201 #define MIDI_CMD_NOTE_PRESSURE          0xa0
    00202 #define MIDI_CMD_CONTROL                0xb0
    00203 #define MIDI_CMD_PGM_CHANGE             0xc0
    00204 #define MIDI_CMD_CHANNEL_PRESSURE       0xd0
    00205 #define MIDI_CMD_BENDER                 0xe0
    00207 #define MIDI_CMD_COMMON_SYSEX           0xf0
    00208 #define MIDI_CMD_COMMON_MTC_QUARTER     0xf1
    00209 #define MIDI_CMD_COMMON_SONG_POS        0xf2
    00210 #define MIDI_CMD_COMMON_SONG_SELECT     0xf3
    00211 #define MIDI_CMD_COMMON_TUNE_REQUEST    0xf6
    00212 #define MIDI_CMD_COMMON_SYSEX_END       0xf7
    00213 #define MIDI_CMD_COMMON_CLOCK           0xf8
    00214 #define MIDI_CMD_COMMON_START           0xfa
    00215 #define MIDI_CMD_COMMON_CONTINUE        0xfb
    00216 #define MIDI_CMD_COMMON_STOP            0xfc
    00217 #define MIDI_CMD_COMMON_SENSING         0xfe
    00218 #define MIDI_CMD_COMMON_RESET           0xff
    00228 #define MIDI_CTL_MSB_BANK               0x00
    00229 #define MIDI_CTL_MSB_MODWHEEL           0x01
    00230 #define MIDI_CTL_MSB_BREATH             0x02
    00231 #define MIDI_CTL_MSB_FOOT               0x04
    00232 #define MIDI_CTL_MSB_PORTAMENTO_TIME    0x05
    00233 #define MIDI_CTL_MSB_DATA_ENTRY         0x06
    00234 #define MIDI_CTL_MSB_MAIN_VOLUME        0x07
    00235 #define MIDI_CTL_MSB_BALANCE            0x08
    00236 #define MIDI_CTL_MSB_PAN                0x0a
    00237 #define MIDI_CTL_MSB_EXPRESSION         0x0b
    00238 #define MIDI_CTL_MSB_EFFECT1            0x0c
    00239 #define MIDI_CTL_MSB_EFFECT2            0x0d
    00240 #define MIDI_CTL_MSB_GENERAL_PURPOSE1   0x10
    00241 #define MIDI_CTL_MSB_GENERAL_PURPOSE2   0x11
    00242 #define MIDI_CTL_MSB_GENERAL_PURPOSE3   0x12
    00243 #define MIDI_CTL_MSB_GENERAL_PURPOSE4   0x13
    00244 #define MIDI_CTL_LSB_BANK               0x20
    00245 #define MIDI_CTL_LSB_MODWHEEL           0x21
    00246 #define MIDI_CTL_LSB_BREATH             0x22
    00247 #define MIDI_CTL_LSB_FOOT               0x24
    00248 #define MIDI_CTL_LSB_PORTAMENTO_TIME    0x25
    00249 #define MIDI_CTL_LSB_DATA_ENTRY         0x26
    00250 #define MIDI_CTL_LSB_MAIN_VOLUME        0x27
    00251 #define MIDI_CTL_LSB_BALANCE            0x28
    00252 #define MIDI_CTL_LSB_PAN                0x2a
    00253 #define MIDI_CTL_LSB_EXPRESSION         0x2b
    00254 #define MIDI_CTL_LSB_EFFECT1            0x2c
    00255 #define MIDI_CTL_LSB_EFFECT2            0x2d
    00256 #define MIDI_CTL_LSB_GENERAL_PURPOSE1   0x30
    00257 #define MIDI_CTL_LSB_GENERAL_PURPOSE2   0x31
    00258 #define MIDI_CTL_LSB_GENERAL_PURPOSE3   0x32
    00259 #define MIDI_CTL_LSB_GENERAL_PURPOSE4   0x33
    00260 #define MIDI_CTL_SUSTAIN                0x40
    00261 #define MIDI_CTL_PORTAMENTO             0x41
    00262 #define MIDI_CTL_SOSTENUTO              0x42
    00263 #define MIDI_CTL_SUSTENUTO              0x42
    00264 #define MIDI_CTL_SOFT_PEDAL             0x43
    00265 #define MIDI_CTL_LEGATO_FOOTSWITCH      0x44
    00266 #define MIDI_CTL_HOLD2                  0x45
    00267 #define MIDI_CTL_SC1_SOUND_VARIATION    0x46
    00268 #define MIDI_CTL_SC2_TIMBRE             0x47
    00269 #define MIDI_CTL_SC3_RELEASE_TIME       0x48
    00270 #define MIDI_CTL_SC4_ATTACK_TIME        0x49
    00271 #define MIDI_CTL_SC5_BRIGHTNESS         0x4a
    00272 #define MIDI_CTL_SC6                    0x4b
    00273 #define MIDI_CTL_SC7                    0x4c
    00274 #define MIDI_CTL_SC8                    0x4d
    00275 #define MIDI_CTL_SC9                    0x4e
    00276 #define MIDI_CTL_SC10                   0x4f
    00277 #define MIDI_CTL_GENERAL_PURPOSE5       0x50
    00278 #define MIDI_CTL_GENERAL_PURPOSE6       0x51
    00279 #define MIDI_CTL_GENERAL_PURPOSE7       0x52
    00280 #define MIDI_CTL_GENERAL_PURPOSE8       0x53
    00281 #define MIDI_CTL_PORTAMENTO_CONTROL     0x54
    00282 #define MIDI_CTL_E1_REVERB_DEPTH        0x5b
    00283 #define MIDI_CTL_E2_TREMOLO_DEPTH       0x5c
    00284 #define MIDI_CTL_E3_CHORUS_DEPTH        0x5d
    00285 #define MIDI_CTL_E4_DETUNE_DEPTH        0x5e
    00286 #define MIDI_CTL_E5_PHASER_DEPTH        0x5f
    00287 #define MIDI_CTL_DATA_INCREMENT         0x60
    00288 #define MIDI_CTL_DATA_DECREMENT         0x61
    00289 #define MIDI_CTL_NONREG_PARM_NUM_LSB    0x62
    00290 #define MIDI_CTL_NONREG_PARM_NUM_MSB    0x63
    00291 #define MIDI_CTL_REGIST_PARM_NUM_LSB    0x64
    00292 #define MIDI_CTL_REGIST_PARM_NUM_MSB    0x65
    00293 #define MIDI_CTL_ALL_SOUNDS_OFF         0x78
    00294 #define MIDI_CTL_RESET_CONTROLLERS      0x79
    00295 #define MIDI_CTL_LOCAL_CONTROL_SWITCH   0x7a
    00296 #define MIDI_CTL_ALL_NOTES_OFF          0x7b
    00297 #define MIDI_CTL_OMNI_OFF               0x7c
    00298 #define MIDI_CTL_OMNI_ON                0x7d
    00299 #define MIDI_CTL_MONO1                  0x7e
    00300 #define MIDI_CTL_MONO2                  0x7f
    00306 #ifdef __cplusplus
    00307 }
    00308 #endif
    00309
    00310 #endif /* __ALSA_ASOUNDEF_H */

All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines