File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -135,8 +135,8 @@ class AACDecoderHelix : public CommonHelix {
135135 p_caller_data);
136136 } else {
137137 // output to stream
138- if (info. sampRateOut != aacFrameInfo. sampRateOut &&
139- infoCallback != nullptr ) {
138+ if (infoCallback != nullptr
139+ && (info. sampRateOut != aacFrameInfo. sampRateOut || info. nChans != aacFrameInfo. nChans ) ) {
140140 infoCallback (info, p_caller_ref);
141141 }
142142#if defined(ARDUINO) || defined(HELIX_PRINT)
Original file line number Diff line number Diff line change @@ -143,8 +143,8 @@ class MP3DecoderHelix : public CommonHelix {
143143 p_caller_data);
144144 } else {
145145 // output to stream
146- if ((info. samprate != mp3FrameInfo. samprate || info. nChans != mp3FrameInfo. nChans )
147- && infoCallback != nullptr ) {
146+ if (infoCallback != nullptr
147+ && (info. samprate != mp3FrameInfo. samprate || info. nChans != mp3FrameInfo. nChans ) ) {
148148 infoCallback (info, p_caller_ref);
149149 }
150150#if defined(ARDUINO) || defined(HELIX_PRINT)
You can’t perform that action at this time.
0 commit comments