64 LOGI(
"DecoderALAC::setCodecConfig: %d", (
int)len);
71 LOGI(
"ALAC Decoder Setup - SR: %d, Channels: %d, Bits: %d, Frame Size: %d",
72 (
int)
dec.mConfig.sampleRate, (
int)
dec.mConfig.numChannels,
73 (
int)
dec.mConfig.bitDepth, (
int)
dec.mConfig.frameLength);
114 LOGE(
"Decode failed with error: %d", status);
134 processed += written;
139 operator bool() {
return true; }
160 tmp.compatibleVersion = 0;
192 return dec.mConfig.frameLength *
dec.mConfig.numChannels *
193 dec.mConfig.bitDepth / 8;
198 config.frameLength =
Swap32NtoB(config.frameLength);
200 config.maxFrameBytes =
Swap32NtoB(config.maxFrameBytes);
201 config.avgBitRate =
Swap32NtoB(config.avgBitRate);
202 config.sampleRate =
Swap32NtoB(config.sampleRate);
223 LOGE(
"No output stream set");
241 "ALAC Encoder: frame_size=%d, inputBuf=%d, outputBuf=%d, channels=%d, "
260 LOGD(
"EncoderALAC::write: %d", (
int)len);
261 for (
int j = 0;
j < len;
j++) {
297 const char*
mime()
override {
return "audio/alac"; }
307 LOGE(
"Can't change frame size on started encoder")
333 result.mFormatFlags =
337 result.mFramesPerPacket = 1;
351 result.mBytesPerPacket = 0;
353 result.mBytesPerFrame = 0;
379 LOGE(
"Unsupported bit depth: %d", bits);
#define LOGI(...)
Definition AudioLoggerIDF.h:28
#define LOGD(...)
Definition AudioLoggerIDF.h:27
#define LOGE(...)
Definition AudioLoggerIDF.h:30
virtual size_t write(const uint8_t *data, size_t len)
Definition Arduino.h:120