OPUSDecoder.h 486 B

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