summaryrefslogtreecommitdiffstats
path: root/audio/decode/ad.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-07-22 14:41:56 +0200
committerwm4 <wm4@nowhere>2013-07-22 14:41:56 +0200
commitf86b94f9b4623baa999961681e44b9a838834de5 (patch)
treee06a91d29b16b735d0235acaa56a59a14e522c4b /audio/decode/ad.h
parent0b160e125723baa42aa3e880945817e518946bd2 (diff)
downloadmpv-f86b94f9b4623baa999961681e44b9a838834de5.tar.bz2
mpv-f86b94f9b4623baa999961681e44b9a838834de5.tar.xz
audio/decode: remove macro crap
Declare decoders directly, instead of using the LIBAD_EXTERN macro. This is simpler (no weird magic) and more extensible.
Diffstat (limited to 'audio/decode/ad.h')
-rw-r--r--audio/decode/ad.h11
1 files changed, 4 insertions, 7 deletions
diff --git a/audio/decode/ad.h b/audio/decode/ad.h
index 1c8a211f5b..3b18c7e977 100644
--- a/audio/decode/ad.h
+++ b/audio/decode/ad.h
@@ -21,14 +21,14 @@
#include "core/codecs.h"
#include "demux/stheader.h"
+#include "demux/demux.h"
-typedef struct mp_codec_info ad_info_t;
+#include "audio/format.h"
struct mp_decoder_list;
/* interface of video decoder drivers */
-typedef struct ad_functions
-{
+struct ad_functions {
const char *name;
void (*add_decoders)(struct mp_decoder_list *list);
int (*preinit)(sh_audio_t *sh);
@@ -37,10 +37,7 @@ typedef struct ad_functions
int (*control)(sh_audio_t *sh, int cmd, void *arg);
int (*decode_audio)(sh_audio_t *sh, unsigned char *buffer, int minlen,
int maxlen);
-} ad_functions_t;
-
-// NULL terminated array of all drivers
-extern const ad_functions_t * const mpcodecs_ad_drivers[];
+};
#define ADCTRL_RESYNC_STREAM 1 // resync, called after seeking