OPUSDecoder.h 412 B

1234567891011121314151617181920
  1. #pragma once
  2. #include "BaseCodec.h"
  3. struct OpusDecoder;
  4. namespace bell {
  5. class OPUSDecoder : public BaseCodec {
  6. private:
  7. OpusDecoder* opus;
  8. int16_t* pcmData;
  9. public:
  10. OPUSDecoder();
  11. ~OPUSDecoder();
  12. bool setup(uint32_t sampleRate, uint8_t channelCount,
  13. uint8_t bitDepth) override;
  14. uint8_t* decode(uint8_t* inData, uint32_t& inLen, uint32_t& outLen) override;
  15. };
  16. } // namespace bell