#ifndef DECODER_MPG123_H #define DECODER_MPG123_H #include "decoder.h" #include #include class DecoderMpg123 : public Decoder { private: mpg123_handle *handle; std::ifstream ifile; size_t decode(const uint8_t *input, size_t input_size, uint8_t *output, size_t output_size); public: DecoderMpg123(const std::string& filename); ~DecoderMpg123(); virtual std::size_t read(char* buf, std::size_t buf_size); }; #endif