decoder/mpg123: new decoder plugin based on libmpg123

Still missing:
- seeking
- tags
- streaming
- encodings other than MPG123_ENC_SIGNED_16
This commit is contained in:
Max Kellermann
2009-08-26 20:08:13 +02:00
parent df0c26a394
commit bff4c54ece
6 changed files with 243 additions and 0 deletions

View File

@@ -28,6 +28,7 @@
#include <string.h>
extern const struct decoder_plugin mad_decoder_plugin;
extern const struct decoder_plugin mpg123_decoder_plugin;
extern const struct decoder_plugin vorbis_decoder_plugin;
extern const struct decoder_plugin flac_decoder_plugin;
extern const struct decoder_plugin oggflac_decoder_plugin;
@@ -48,6 +49,9 @@ static const struct decoder_plugin *const decoder_plugins[] = {
#ifdef HAVE_MAD
&mad_decoder_plugin,
#endif
#ifdef HAVE_MPG123
&mpg123_decoder_plugin,
#endif
#ifdef ENABLE_VORBIS_DECODER
&vorbis_decoder_plugin,
#endif