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 {
135
135
p_caller_data);
136
136
} else {
137
137
// 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 ) ) {
140
140
infoCallback (info, p_caller_ref);
141
141
}
142
142
#if defined(ARDUINO) || defined(HELIX_PRINT)
Original file line number Diff line number Diff line change @@ -143,8 +143,8 @@ class MP3DecoderHelix : public CommonHelix {
143
143
p_caller_data);
144
144
} else {
145
145
// 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 ) ) {
148
148
infoCallback (info, p_caller_ref);
149
149
}
150
150
#if defined(ARDUINO) || defined(HELIX_PRINT)
You can’t perform that action at this time.
0 commit comments