summaryrefslogtreecommitdiff
path: root/decoders/mpg123_decoder.h
diff options
context:
space:
mode:
Diffstat (limited to 'decoders/mpg123_decoder.h')
-rw-r--r--decoders/mpg123_decoder.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/decoders/mpg123_decoder.h b/decoders/mpg123_decoder.h
new file mode 100644
index 0000000..46f9e4c
--- /dev/null
+++ b/decoders/mpg123_decoder.h
@@ -0,0 +1,18 @@
+#ifndef DECODER_MPG123_H
+#define DECODER_MPG123_H
+
+#include "decoder.h"
+
+#include <mpg123.h>
+
+class DecoderMpg123 : public DecoderBase {
+ private:
+ mpg123_handle *handle;
+
+ public:
+ DecoderMpg123();
+ ~DecoderMpg123();
+ size_t decode(const uint8_t *input, size_t input_size, uint8_t *output, size_t output_size);
+};
+
+#endif