annotate libmpcodecs/ad.c @ 6697:4cade272ce2b

Added a simple xmcd parser to retreive the tracks name. Added a simple list of tracks name, to allow displaying the name on track change.
author bertrand
date Wed, 10 Jul 2002 08:51:11 +0000
parents 489c4bcbda13
children 0145bba6e201
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
5344
7198d3eba09f ok, use ad_* stuff
arpi
parents:
diff changeset
1 /*
7198d3eba09f ok, use ad_* stuff
arpi
parents:
diff changeset
2 ad.c - audio decoder interface
7198d3eba09f ok, use ad_* stuff
arpi
parents:
diff changeset
3 */
7198d3eba09f ok, use ad_* stuff
arpi
parents:
diff changeset
4
7198d3eba09f ok, use ad_* stuff
arpi
parents:
diff changeset
5 #include <stdio.h>
7198d3eba09f ok, use ad_* stuff
arpi
parents:
diff changeset
6 #include <stdlib.h>
7198d3eba09f ok, use ad_* stuff
arpi
parents:
diff changeset
7 #include <string.h>
7198d3eba09f ok, use ad_* stuff
arpi
parents:
diff changeset
8
7198d3eba09f ok, use ad_* stuff
arpi
parents:
diff changeset
9 #include "config.h"
7198d3eba09f ok, use ad_* stuff
arpi
parents:
diff changeset
10
7198d3eba09f ok, use ad_* stuff
arpi
parents:
diff changeset
11 #include "stream.h"
7198d3eba09f ok, use ad_* stuff
arpi
parents:
diff changeset
12 #include "demuxer.h"
7198d3eba09f ok, use ad_* stuff
arpi
parents:
diff changeset
13 #include "stheader.h"
7198d3eba09f ok, use ad_* stuff
arpi
parents:
diff changeset
14 #include "ad.h"
7198d3eba09f ok, use ad_* stuff
arpi
parents:
diff changeset
15
7198d3eba09f ok, use ad_* stuff
arpi
parents:
diff changeset
16 /* Missed vorbis, mad, dshow */
7198d3eba09f ok, use ad_* stuff
arpi
parents:
diff changeset
17
7198d3eba09f ok, use ad_* stuff
arpi
parents:
diff changeset
18 //extern ad_functions_t mpcodecs_ad_null;
7198d3eba09f ok, use ad_* stuff
arpi
parents:
diff changeset
19 extern ad_functions_t mpcodecs_ad_mp3lib;
7198d3eba09f ok, use ad_* stuff
arpi
parents:
diff changeset
20 extern ad_functions_t mpcodecs_ad_ffmpeg;
7198d3eba09f ok, use ad_* stuff
arpi
parents:
diff changeset
21 extern ad_functions_t mpcodecs_ad_liba52;
7198d3eba09f ok, use ad_* stuff
arpi
parents:
diff changeset
22 extern ad_functions_t mpcodecs_ad_hwac3;
7198d3eba09f ok, use ad_* stuff
arpi
parents:
diff changeset
23 extern ad_functions_t mpcodecs_ad_pcm;
7198d3eba09f ok, use ad_* stuff
arpi
parents:
diff changeset
24 extern ad_functions_t mpcodecs_ad_dvdpcm;
7198d3eba09f ok, use ad_* stuff
arpi
parents:
diff changeset
25 extern ad_functions_t mpcodecs_ad_alaw;
7198d3eba09f ok, use ad_* stuff
arpi
parents:
diff changeset
26 extern ad_functions_t mpcodecs_ad_imaadpcm;
7198d3eba09f ok, use ad_* stuff
arpi
parents:
diff changeset
27 extern ad_functions_t mpcodecs_ad_msadpcm;
7198d3eba09f ok, use ad_* stuff
arpi
parents:
diff changeset
28 extern ad_functions_t mpcodecs_ad_dk3adpcm;
5519
868c13f78f08 vf control codes added, autoq support
arpi
parents: 5479
diff changeset
29 extern ad_functions_t mpcodecs_ad_dk4adpcm;
5344
7198d3eba09f ok, use ad_* stuff
arpi
parents:
diff changeset
30 extern ad_functions_t mpcodecs_ad_roqaudio;
7198d3eba09f ok, use ad_* stuff
arpi
parents:
diff changeset
31 extern ad_functions_t mpcodecs_ad_dshow;
7198d3eba09f ok, use ad_* stuff
arpi
parents:
diff changeset
32 extern ad_functions_t mpcodecs_ad_acm;
5345
81071ffb7b22 ad_msgsm added
arpi
parents: 5344
diff changeset
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
c6252cfb68e2 ehh. vorbis support...
arpi
parents: 5408
diff changeset
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;
6367
489c4bcbda13 readaudio decoder - not yet working
arpi
parents: 5519
diff changeset
37 extern ad_functions_t mpcodecs_ad_real;
5344
7198d3eba09f ok, use ad_* stuff
arpi
parents:
diff changeset
38
7198d3eba09f ok, use ad_* stuff
arpi
parents:
diff changeset
39 ad_functions_t* mpcodecs_ad_drivers[] =
7198d3eba09f ok, use ad_* stuff
arpi
parents:
diff changeset
40 {
7198d3eba09f ok, use ad_* stuff
arpi
parents:
diff changeset
41 // &mpcodecs_ad_null,
7198d3eba09f ok, use ad_* stuff
arpi
parents:
diff changeset
42 &mpcodecs_ad_mp3lib,
7198d3eba09f ok, use ad_* stuff
arpi
parents:
diff changeset
43 &mpcodecs_ad_liba52,
7198d3eba09f ok, use ad_* stuff
arpi
parents:
diff changeset
44 &mpcodecs_ad_hwac3,
7198d3eba09f ok, use ad_* stuff
arpi
parents:
diff changeset
45 #ifdef USE_LIBAVCODEC
7198d3eba09f ok, use ad_* stuff
arpi
parents:
diff changeset
46 &mpcodecs_ad_ffmpeg,
7198d3eba09f ok, use ad_* stuff
arpi
parents:
diff changeset
47 #endif
7198d3eba09f ok, use ad_* stuff
arpi
parents:
diff changeset
48 &mpcodecs_ad_pcm,
7198d3eba09f ok, use ad_* stuff
arpi
parents:
diff changeset
49 &mpcodecs_ad_dvdpcm,
7198d3eba09f ok, use ad_* stuff
arpi
parents:
diff changeset
50 &mpcodecs_ad_alaw,
7198d3eba09f ok, use ad_* stuff
arpi
parents:
diff changeset
51 &mpcodecs_ad_imaadpcm,
7198d3eba09f ok, use ad_* stuff
arpi
parents:
diff changeset
52 &mpcodecs_ad_msadpcm,
7198d3eba09f ok, use ad_* stuff
arpi
parents:
diff changeset
53 &mpcodecs_ad_dk3adpcm,
7198d3eba09f ok, use ad_* stuff
arpi
parents:
diff changeset
54 &mpcodecs_ad_roqaudio,
5345
81071ffb7b22 ad_msgsm added
arpi
parents: 5344
diff changeset
55 &mpcodecs_ad_msgsm,
5344
7198d3eba09f ok, use ad_* stuff
arpi
parents:
diff changeset
56 #ifdef USE_WIN32DLL
7198d3eba09f ok, use ad_* stuff
arpi
parents:
diff changeset
57 #ifdef USE_DIRECTSHOW
7198d3eba09f ok, use ad_* stuff
arpi
parents:
diff changeset
58 &mpcodecs_ad_dshow,
7198d3eba09f ok, use ad_* stuff
arpi
parents:
diff changeset
59 #endif
7198d3eba09f ok, use ad_* stuff
arpi
parents:
diff changeset
60 &mpcodecs_ad_acm,
7198d3eba09f ok, use ad_* stuff
arpi
parents:
diff changeset
61 #endif
5356
739cad21c32c Port dec_audio.c faad aac decoder to libmpcodecs, cleaned up code, improved buffering scheme.
atmos4
parents: 5345
diff changeset
62 #ifdef HAVE_FAAD
5454
c6252cfb68e2 ehh. vorbis support...
arpi
parents: 5408
diff changeset
63 &mpcodecs_ad_faad,
c6252cfb68e2 ehh. vorbis support...
arpi
parents: 5408
diff changeset
64 #endif
c6252cfb68e2 ehh. vorbis support...
arpi
parents: 5408
diff changeset
65 #ifdef HAVE_OGGVORBIS
c6252cfb68e2 ehh. vorbis support...
arpi
parents: 5408
diff changeset
66 &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
67 #endif
5479
22b289d7f87f libmad support, rewritten from scratch using Xine decoder as sample
arpi
parents: 5454
diff changeset
68 #ifdef USE_LIBMAD
22b289d7f87f libmad support, rewritten from scratch using Xine decoder as sample
arpi
parents: 5454
diff changeset
69 &mpcodecs_ad_libmad,
22b289d7f87f libmad support, rewritten from scratch using Xine decoder as sample
arpi
parents: 5454
diff changeset
70 #endif
6367
489c4bcbda13 readaudio decoder - not yet working
arpi
parents: 5519
diff changeset
71 #ifdef USE_REALCODECS
489c4bcbda13 readaudio decoder - not yet working
arpi
parents: 5519
diff changeset
72 &mpcodecs_ad_real,
489c4bcbda13 readaudio decoder - not yet working
arpi
parents: 5519
diff changeset
73 #endif
5344
7198d3eba09f ok, use ad_* stuff
arpi
parents:
diff changeset
74 NULL
7198d3eba09f ok, use ad_* stuff
arpi
parents:
diff changeset
75 };