File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
src/AudioTools/AudioCodecs Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -408,9 +408,11 @@ class DSFDecoder : public AudioDecoder {
408
408
for (int ch = 0 ; ch < meta.channels ; ch++) {
409
409
// Normalize by sample count and apply scaling factor
410
410
channelAccum[ch] = channelAccum[ch] / samplesPerChannel * 0 .8f ;
411
-
412
- // Apply low-pass filter to remove high-frequency noise
413
- channelAccum[ch] = channelFilters[ch].process (channelAccum[ch]);
411
+ if (meta.filter_cutoff > 0 .0f &&
412
+ meta.filter_q > 0 .0f ) { // Only apply filter if configured
413
+ // Apply low-pass filter to remove high-frequency noise
414
+ channelAccum[ch] = channelFilters[ch].process (channelAccum[ch]);
415
+ }
414
416
// Serial.print(channelAccum[ch]);
415
417
// Serial.print(" ");
416
418
You can’t perform that action at this time.
0 commit comments