summaryrefslogtreecommitdiff
path: root/decoders/mpg123_decoder.h
diff options
context:
space:
mode:
authorVegard Storheil Eriksen <zyp@jvnv.net>2011-01-06 03:24:28 +0100
committerVegard Storheil Eriksen <zyp@jvnv.net>2011-01-06 03:24:28 +0100
commite755f01e631e832e3ef529049888d62af38d2b38 (patch)
tree1f2b8c8b888157cdd4c598541ebb8f26e9cc078f /decoders/mpg123_decoder.h
parent70f111b184928feab0c94f762954b5ec83a441c6 (diff)
Change decoder/encoder API to provide decode/encode functions with a read callback function.
Diffstat (limited to 'decoders/mpg123_decoder.h')
-rw-r--r--decoders/mpg123_decoder.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/decoders/mpg123_decoder.h b/decoders/mpg123_decoder.h
index 46f9e4c..5a637af 100644
--- a/decoders/mpg123_decoder.h
+++ b/decoders/mpg123_decoder.h
@@ -8,11 +8,15 @@
class DecoderMpg123 : public DecoderBase {
private:
mpg123_handle *handle;
-
+
+ size_t decode(const uint8_t *input, size_t input_size, uint8_t *output, size_t output_size);
+
+ protected:
+ virtual size_t decode(ReadFunc read, uint8_t *output, size_t output_size);
+
public:
DecoderMpg123();
~DecoderMpg123();
- size_t decode(const uint8_t *input, size_t input_size, uint8_t *output, size_t output_size);
};
#endif