We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7825d6c commit 837421dCopy full SHA for 837421d
src/MP3DecoderHelix.h
@@ -143,7 +143,8 @@ class MP3DecoderHelix : public CommonHelix {
143
p_caller_data);
144
} else {
145
// output to stream
146
- if (info.samprate != mp3FrameInfo.samprate && infoCallback != nullptr) {
+ if ((info.samprate != mp3FrameInfo.samprate || info.nChans != mp3FrameInfo.nChans)
147
+ && infoCallback != nullptr) {
148
infoCallback(info, p_caller_ref);
149
}
150
#if defined(ARDUINO) || defined(HELIX_PRINT)
0 commit comments