62 LOGI(
"DecoderALAC::setCodecConfig: %d", (
int)len);
69 LOGI(
"ALAC Decoder Setup - SR: %d, Channels: %d, Bits: %d, Frame Size: %d",
70 (
int)
dec.mConfig.sampleRate, (
int)
dec.mConfig.numChannels,
71 (
int)
dec.mConfig.bitDepth, (
int)
dec.mConfig.frameLength);
112 LOGE(
"Decode failed with error: %d", status);
132 processed += written;
137 operator bool() {
return true; }
158 tmp.compatibleVersion = 0;
190 return dec.mConfig.frameLength *
dec.mConfig.numChannels *
191 dec.mConfig.bitDepth / 8;
196 config.frameLength =
Swap32NtoB(config.frameLength);
198 config.maxFrameBytes =
Swap32NtoB(config.maxFrameBytes);
199 config.avgBitRate =
Swap32NtoB(config.avgBitRate);
200 config.sampleRate =
Swap32NtoB(config.sampleRate);
221 LOGE(
"No output stream set");
239 "ALAC Encoder: frame_size=%d, inputBuf=%d, outputBuf=%d, channels=%d, "
258 LOGD(
"EncoderALAC::write: %d", (
int)len);
259 for (
int j = 0;
j < len;
j++) {
295 const char*
mime()
override {
return "audio/alac"; }
305 LOGE(
"Can't change frame size on started encoder")
331 result.mFormatFlags =
335 result.mFramesPerPacket = 1;
349 result.mBytesPerPacket = 0;
351 result.mBytesPerFrame = 0;
377 LOGE(
"Unsupported bit depth: %d", bits);
#define LOGI(...)
Definition AudioLoggerIDF.h:28
#define LOGD(...)
Definition AudioLoggerIDF.h:27
#define LOGE(...)
Definition AudioLoggerIDF.h:30
#define MIN(A, B)
Definition AudioTypes.h:17