Skip to content

Commit ced5666

Browse files
committed
ADPCM error for unimplemented codecs
1 parent 2d3b51c commit ced5666

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/AudioTools/AudioCodecs/CodecADPCM.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ class ADPCMDecoder : public AudioDecoderExt {
2121
if (p_decoder!=nullptr){
2222
p_decoder->setCodecID(id);
2323
p_decoder->setBlockSize(blockSize);
24+
} else {
25+
LOGE("Decoder not implemented");
2426
}
2527
}
2628

@@ -134,6 +136,8 @@ class ADPCMEncoder : public AudioEncoderExt {
134136
if (p_encoder!=nullptr){
135137
p_encoder->setCodecID(id);
136138
p_encoder->setBlockSize(blockSize);
139+
} else {
140+
LOGE("Encoder not implemented");
137141
}
138142
}
139143

0 commit comments

Comments
 (0)