AACDecoder.h 425 B

12345678910111213141516171819
  1. // Copyright (c) Kuba Szczodrzyński 2022-1-12.
  2. #pragma once
  3. #include "BaseCodec.h"
  4. #include "aacdec.h"
  5. class AACDecoder : public BaseCodec {
  6. private:
  7. HAACDecoder aac;
  8. int16_t *pcmData;
  9. AACFrameInfo frame = {};
  10. public:
  11. AACDecoder();
  12. ~AACDecoder();
  13. bool setup(uint32_t sampleRate, uint8_t channelCount, uint8_t bitDepth) override;
  14. uint8_t *decode(uint8_t *inData, uint32_t inLen, uint32_t &outLen) override;
  15. };