sync with en/mplayer.1 rev. 30611
[mplayer/glamo.git] / libmpcodecs / ad.c
blob3b4fb87c1e9c383ee9b0790cc5e0bd57278ddf4e
1 /*
2 * audio decoder interface
4 * This file is part of MPlayer.
6 * MPlayer is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
11 * MPlayer is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License along
17 * with MPlayer; if not, write to the Free Software Foundation, Inc.,
18 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
21 #include <stdio.h>
22 #include <stdlib.h>
23 #include <string.h>
25 #include "config.h"
27 #include "stream/stream.h"
28 #include "libmpdemux/demuxer.h"
29 #include "libmpdemux/stheader.h"
30 #include "ad.h"
32 /* Missed vorbis, mad, dshow */
34 //extern ad_functions_t mpcodecs_ad_null;
35 extern ad_functions_t mpcodecs_ad_mp3lib;
36 extern ad_functions_t mpcodecs_ad_ffmpeg;
37 extern ad_functions_t mpcodecs_ad_liba52;
38 extern ad_functions_t mpcodecs_ad_hwac3;
39 extern ad_functions_t mpcodecs_ad_hwmpa;
40 extern ad_functions_t mpcodecs_ad_pcm;
41 extern ad_functions_t mpcodecs_ad_dvdpcm;
42 extern ad_functions_t mpcodecs_ad_alaw;
43 extern ad_functions_t mpcodecs_ad_imaadpcm;
44 extern ad_functions_t mpcodecs_ad_msadpcm;
45 extern ad_functions_t mpcodecs_ad_dk3adpcm;
46 extern ad_functions_t mpcodecs_ad_dk4adpcm;
47 extern ad_functions_t mpcodecs_ad_dshow;
48 extern ad_functions_t mpcodecs_ad_dmo;
49 extern ad_functions_t mpcodecs_ad_acm;
50 extern ad_functions_t mpcodecs_ad_msgsm;
51 extern ad_functions_t mpcodecs_ad_faad;
52 extern ad_functions_t mpcodecs_ad_libvorbis;
53 extern ad_functions_t mpcodecs_ad_speex;
54 extern ad_functions_t mpcodecs_ad_libmad;
55 extern ad_functions_t mpcodecs_ad_realaud;
56 extern ad_functions_t mpcodecs_ad_libdv;
57 extern ad_functions_t mpcodecs_ad_qtaudio;
58 extern ad_functions_t mpcodecs_ad_twin;
59 extern ad_functions_t mpcodecs_ad_libmusepack;
60 extern ad_functions_t mpcodecs_ad_libdca;
62 ad_functions_t* mpcodecs_ad_drivers[] =
64 // &mpcodecs_ad_null,
65 #ifdef CONFIG_MP3LIB
66 &mpcodecs_ad_mp3lib,
67 #endif
68 #ifdef CONFIG_LIBA52
69 &mpcodecs_ad_liba52,
70 #endif
71 &mpcodecs_ad_hwac3,
72 &mpcodecs_ad_hwmpa,
73 #ifdef CONFIG_LIBAVCODEC
74 &mpcodecs_ad_ffmpeg,
75 #endif
76 &mpcodecs_ad_pcm,
77 &mpcodecs_ad_dvdpcm,
78 &mpcodecs_ad_alaw,
79 &mpcodecs_ad_imaadpcm,
80 &mpcodecs_ad_msadpcm,
81 &mpcodecs_ad_dk3adpcm,
82 &mpcodecs_ad_msgsm,
83 #ifdef CONFIG_WIN32DLL
84 &mpcodecs_ad_dshow,
85 &mpcodecs_ad_dmo,
86 &mpcodecs_ad_acm,
87 &mpcodecs_ad_twin,
88 #endif
89 #ifdef CONFIG_QTX_CODECS
90 &mpcodecs_ad_qtaudio,
91 #endif
92 #ifdef CONFIG_FAAD
93 &mpcodecs_ad_faad,
94 #endif
95 #ifdef CONFIG_OGGVORBIS
96 &mpcodecs_ad_libvorbis,
97 #endif
98 #ifdef CONFIG_SPEEX
99 &mpcodecs_ad_speex,
100 #endif
101 #ifdef CONFIG_LIBMAD
102 &mpcodecs_ad_libmad,
103 #endif
104 #ifdef CONFIG_REALCODECS
105 &mpcodecs_ad_realaud,
106 #endif
107 #ifdef CONFIG_LIBDV095
108 &mpcodecs_ad_libdv,
109 #endif
110 #ifdef CONFIG_MUSEPACK
111 &mpcodecs_ad_libmusepack,
112 #endif
113 #ifdef CONFIG_LIBDCA
114 &mpcodecs_ad_libdca,
115 #endif
116 NULL