Skip to content

Commit 837421d

Browse files
committed
Notify on channel change
1 parent 7825d6c commit 837421d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/MP3DecoderHelix.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,8 @@ class MP3DecoderHelix : public CommonHelix {
143143
p_caller_data);
144144
} else {
145145
// output to stream
146-
if (info.samprate != mp3FrameInfo.samprate && infoCallback != nullptr) {
146+
if ((info.samprate != mp3FrameInfo.samprate || info.nChans != mp3FrameInfo.nChans)
147+
&& infoCallback != nullptr) {
147148
infoCallback(info, p_caller_ref);
148149
}
149150
#if defined(ARDUINO) || defined(HELIX_PRINT)

0 commit comments

Comments
 (0)