Skip to content

Commit

Permalink
Switch back to the FIR256 filter by default
Browse files Browse the repository at this point in the history
There is a surprisingly noticeable amount of static caused by the IIR filter in
particular circumstances. The 256-point filter is only slightly slower, but the
frequency response should be good enough to use as a default for now.
  • Loading branch information
kcat committed Oct 27, 2022
1 parent 2c5476e commit 02d0b34
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions alsoftrc.sample
Original file line number Diff line number Diff line change
Expand Up @@ -356,18 +356,18 @@
## decode-filter: (global)
# Specifies the all-pass filter type for UHJ decoding and Super Stereo
# processing. Valid values are:
# iir - utilizes dual IIR filters, providing a wide pass-band with low CPU
# use, but may exhibit some low-level distortion.
# fir256 - utilizes a 256-point FIR filter, providing more stable results but
# exhibiting attenuation in the lower and higher frequency bands.
# fir512 - utilizes a 512-point FIR filter, providing a wider pass-band than
# fir256, at the cost of more CPU use.
#decode-filter = iir
# iir - utilizes dual IIR filters, providing a wide pass-band with low CPU
# use, but may exhibit some low-level distortion.
#decode-filter = fir256

## encode-filter: (global)
# Specifies the all-pass filter type for UHJ output encoding. Valid values are
# the same as for decode-filter.
#encode-filter = iir
#encode-filter = fir256

##
## Reverb effect stuff (includes EAX reverb)
Expand Down
2 changes: 1 addition & 1 deletion core/uhjfilter.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ enum class UhjQualityType : uint8_t {
IIR = 0,
FIR256,
FIR512,
Default = IIR
Default = FIR256
};

extern UhjQualityType UhjDecodeQuality;
Expand Down

0 comments on commit 02d0b34

Please sign in to comment.