10l fix by Jindrich Makovicka
[mplayer/greg.git] / libao2 / afmt.h
blobf7c4fcd61617f90f7198909df618ca37b625606b
2 /* Defines that AFMT_ stuff */
4 #ifdef HAVE_SYS_SOUNDCARD_H
5 #include <sys/soundcard.h> /* For AFMT_* on linux */
6 #else
7 #ifdef HAVE_SOUNDCARD_H
8 #include <soundcard.h> /* OpenBSD have this instead of <sys/soundcard> */
9 #endif
10 #endif
12 #include "../config.h" /* for native endianness */
14 /* standard, old OSS audio formats */
15 #ifndef AFMT_MU_LAW
16 # define AFMT_MU_LAW 0x00000001
17 # define AFMT_A_LAW 0x00000002
18 # define AFMT_IMA_ADPCM 0x00000004
19 # define AFMT_U8 0x00000008
20 # define AFMT_S16_LE 0x00000010 /* Little endian signed 16*/
21 # define AFMT_S16_BE 0x00000020 /* Big endian signed 16 */
22 # define AFMT_S8 0x00000040
23 # define AFMT_U16_LE 0x00000080 /* Little endian U16 */
24 # define AFMT_U16_BE 0x00000100 /* Big endian U16 */
25 #endif
27 #ifndef AFMT_MPEG
28 # define AFMT_MPEG 0x00000200 /* MPEG (2) audio */
29 #endif
31 #ifndef AFMT_AC3
32 # define AFMT_AC3 0x00000400 /* Dolby Digital AC3 */
33 #endif
35 /* 32 bit formats (MSB aligned) formats */
36 #ifndef AFMT_S32_LE
37 # define AFMT_S32_LE 0x00001000
38 # define AFMT_S32_BE 0x00002000
39 #endif
42 /* native endian formats */
43 #ifndef AFMT_S16_NE
44 # if WORDS_BIGENDIAN
45 # define AFMT_S16_NE AFMT_S16_BE
46 # define AFMT_S32_NE AFMT_S32_BE
47 # else
48 # define AFMT_S16_NE AFMT_S16_LE
49 # define AFMT_S32_NE AFMT_S32_LE
50 # endif
51 #endif
53 #ifndef AFMT_FLOAT
54 # define AFMT_FLOAT 0x00004000
55 #endif