ALACDecoder.h 416 B

123456789101112131415161718
  1. // Copyright (c) Kuba Szczodrzyński 2022-1-12.
  2. #pragma once
  3. #include "BaseCodec.h"
  4. #include "alac_wrapper.h"
  5. class ALACDecoder : public BaseCodec {
  6. private:
  7. alac_codec_s* alacCodec;
  8. int16_t *pcmData;
  9. public:
  10. ALACDecoder();
  11. ~ALACDecoder();
  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. };