Mercurial > mplayer.hg
annotate libmpcodecs/ad.c @ 5789:0132c5747e8a
fix audio only files play
author | pontscho |
---|---|
date | Mon, 22 Apr 2002 21:36:12 +0000 |
parents | 868c13f78f08 |
children | 489c4bcbda13 |
rev | line source |
---|---|
5344 | 1 /* |
2 ad.c - audio decoder interface | |
3 */ | |
4 | |
5 #include <stdio.h> | |
6 #include <stdlib.h> | |
7 #include <string.h> | |
8 | |
9 #include "config.h" | |
10 | |
11 #include "stream.h" | |
12 #include "demuxer.h" | |
13 #include "stheader.h" | |
14 #include "ad.h" | |
15 | |
16 /* Missed vorbis, mad, dshow */ | |
17 | |
18 //extern ad_functions_t mpcodecs_ad_null; | |
19 extern ad_functions_t mpcodecs_ad_mp3lib; | |
20 extern ad_functions_t mpcodecs_ad_ffmpeg; | |
21 extern ad_functions_t mpcodecs_ad_liba52; | |
22 extern ad_functions_t mpcodecs_ad_hwac3; | |
23 extern ad_functions_t mpcodecs_ad_pcm; | |
24 extern ad_functions_t mpcodecs_ad_dvdpcm; | |
25 extern ad_functions_t mpcodecs_ad_alaw; | |
26 extern ad_functions_t mpcodecs_ad_imaadpcm; | |
27 extern ad_functions_t mpcodecs_ad_msadpcm; | |
28 extern ad_functions_t mpcodecs_ad_dk3adpcm; | |
5519 | 29 extern ad_functions_t mpcodecs_ad_dk4adpcm; |
5344 | 30 extern ad_functions_t mpcodecs_ad_roqaudio; |
31 extern ad_functions_t mpcodecs_ad_dshow; | |
32 extern ad_functions_t mpcodecs_ad_acm; | |
5345 | 33 extern ad_functions_t mpcodecs_ad_msgsm; |
5356
739cad21c32c
Port dec_audio.c faad aac decoder to libmpcodecs, cleaned up code, improved buffering scheme.
atmos4
parents:
5345
diff
changeset
|
34 extern ad_functions_t mpcodecs_ad_faad; |
5454 | 35 extern ad_functions_t mpcodecs_ad_vorbis; |
5479
22b289d7f87f
libmad support, rewritten from scratch using Xine decoder as sample
arpi
parents:
5454
diff
changeset
|
36 extern ad_functions_t mpcodecs_ad_libmad; |
5344 | 37 |
38 ad_functions_t* mpcodecs_ad_drivers[] = | |
39 { | |
40 // &mpcodecs_ad_null, | |
41 &mpcodecs_ad_mp3lib, | |
42 &mpcodecs_ad_liba52, | |
43 &mpcodecs_ad_hwac3, | |
44 #ifdef USE_LIBAVCODEC | |
45 &mpcodecs_ad_ffmpeg, | |
46 #endif | |
47 &mpcodecs_ad_pcm, | |
48 &mpcodecs_ad_dvdpcm, | |
49 &mpcodecs_ad_alaw, | |
50 &mpcodecs_ad_imaadpcm, | |
51 &mpcodecs_ad_msadpcm, | |
52 &mpcodecs_ad_dk3adpcm, | |
53 &mpcodecs_ad_roqaudio, | |
5345 | 54 &mpcodecs_ad_msgsm, |
5344 | 55 #ifdef USE_WIN32DLL |
56 #ifdef USE_DIRECTSHOW | |
57 &mpcodecs_ad_dshow, | |
58 #endif | |
59 &mpcodecs_ad_acm, | |
60 #endif | |
5356
739cad21c32c
Port dec_audio.c faad aac decoder to libmpcodecs, cleaned up code, improved buffering scheme.
atmos4
parents:
5345
diff
changeset
|
61 #ifdef HAVE_FAAD |
5454 | 62 &mpcodecs_ad_faad, |
63 #endif | |
64 #ifdef HAVE_OGGVORBIS | |
65 &mpcodecs_ad_vorbis, | |
5356
739cad21c32c
Port dec_audio.c faad aac decoder to libmpcodecs, cleaned up code, improved buffering scheme.
atmos4
parents:
5345
diff
changeset
|
66 #endif |
5479
22b289d7f87f
libmad support, rewritten from scratch using Xine decoder as sample
arpi
parents:
5454
diff
changeset
|
67 #ifdef USE_LIBMAD |
22b289d7f87f
libmad support, rewritten from scratch using Xine decoder as sample
arpi
parents:
5454
diff
changeset
|
68 &mpcodecs_ad_libmad, |
22b289d7f87f
libmad support, rewritten from scratch using Xine decoder as sample
arpi
parents:
5454
diff
changeset
|
69 #endif |
5344 | 70 NULL |
71 }; |