summaryrefslogtreecommitdiffstats
path: root/libao2/afmt.h
diff options
context:
space:
mode:
authorarpi_esp <arpi_esp@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-06-08 23:31:06 +0000
committerarpi_esp <arpi_esp@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-06-08 23:31:06 +0000
commit0b3d0c82a7fd24331350142ef59aed00ac6538ad (patch)
treef4cf8de37c2d5856d219af2d5488750449b8931f /libao2/afmt.h
parent7d96a77e0df64332dc5e0c93fa5e955a9c4e43ef (diff)
downloadmpv-0b3d0c82a7fd24331350142ef59aed00ac6538ad.tar.bz2
mpv-0b3d0c82a7fd24331350142ef59aed00ac6538ad.tar.xz
fixed AFMT_ stuff (inclue afmt.h)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@1059 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libao2/afmt.h')
-rw-r--r--libao2/afmt.h34
1 files changed, 34 insertions, 0 deletions
diff --git a/libao2/afmt.h b/libao2/afmt.h
new file mode 100644
index 0000000000..29f2de1912
--- /dev/null
+++ b/libao2/afmt.h
@@ -0,0 +1,34 @@
+
+/* Defines that AFMT_ stuff */
+
+#ifdef HAVE_SYS_SOUNDCARD_H
+#include <sys/soundcard.h> /* For AFMT_* on linux */
+#endif
+
+/* standard, old OSS audio formats */
+#ifndef AFMT_MU_LAW
+# 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 */
+#endif
+
+#ifndef AFMT_MPEG
+# define AFMT_MPEG 0x00000200 /* MPEG (2) audio */
+#endif
+
+#ifndef AFMT_AC3
+# define AFMT_AC3 0x00000400 /* Dolby Digital AC3 */
+#endif
+
+/* 32 bit formats (MSB aligned) formats */
+#ifndef AFMT_S32_LE
+# define AFMT_S32_LE 0x00001000
+# define AFMT_S32_BE 0x00002000
+#endif
+