OPUSDecoder.h 405 B

12345678910111213141516171819
  1. // Copyright (c) Kuba Szczodrzyński 2022-1-14.
  2. #pragma once
  3. #include "BaseCodec.h"
  4. struct OpusDecoder;
  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, uint8_t bitDepth) override;
  13. uint8_t *decode(uint8_t *inData, uint32_t inLen, uint32_t &outLen) override;
  14. };