nsvmain.h 385 B

1234567891011121314151617181920
  1. #pragma once
  2. #include <mpg123.h>
  3. #include "../nsv/dec_if.h"
  4. class MP3_Decoder : public IAudioDecoder
  5. {
  6. public:
  7. MP3_Decoder();
  8. ~MP3_Decoder() { };
  9. int decode(void *in, int in_len,
  10. void *out, int *out_len,
  11. unsigned int out_fmt[8]);
  12. void flush();
  13. private:
  14. mpg123_handle *decoder;
  15. float pcm_buf[1152*2*2];
  16. size_t pcm_buf_used;
  17. int pcm_offs;
  18. int fused;
  19. };