aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2022-10-30 15:48:31 -0700
committerChris Robinson <[email protected]>2022-10-30 15:48:31 -0700
commitbc7f5260475586b833a568c7b3ac48ac9f89be3b (patch)
tree027b59ab896eabf34f846dbcca81d581a0350fa4
parentbb88035a96e6794e4dd1085c2c11b046b7f5c8c7 (diff)
Use the IIR filter for UHJ by default
Now that it doesn't cause the distortion like before, the IIR implementation provides a very wide pass-band with the lowest CPU requirements. If maintaining the original phase is important, fir256 and fir512 are still available, given whether lower CPU use or a wider pass-band is more important.
-rw-r--r--alsoftrc.sample4
-rw-r--r--core/uhjfilter.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/alsoftrc.sample b/alsoftrc.sample
index 84b5d3bc..d575adc3 100644
--- a/alsoftrc.sample
+++ b/alsoftrc.sample
@@ -362,12 +362,12 @@
# 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 = fir256
+#decode-filter = iir
## encode-filter: (global)
# Specifies the all-pass filter type for UHJ output encoding. Valid values are
# the same as for decode-filter.
-#encode-filter = fir256
+#encode-filter = iir
##
## Reverb effect stuff (includes EAX reverb)
diff --git a/core/uhjfilter.h b/core/uhjfilter.h
index 48c379dd..0cdd0f90 100644
--- a/core/uhjfilter.h
+++ b/core/uhjfilter.h
@@ -16,7 +16,7 @@ enum class UhjQualityType : uint8_t {
IIR = 0,
FIR256,
FIR512,
- Default = FIR256
+ Default = IIR
};
extern UhjQualityType UhjDecodeQuality;