diff options
author | Hans Petter Selasky <hselasky@FreeBSD.org> | 2022-08-22 07:41:05 +0000 |
---|---|---|
committer | Hans Petter Selasky <hselasky@FreeBSD.org> | 2022-08-22 08:04:26 +0000 |
commit | e7314192cea3cfade4468c8656cd82f2a95837da (patch) | |
tree | ef8e77b1bf9179e39d23a0c4036600f8fd432db6 | |
parent | 7cb73f654ff4fe55a366cd3a96c0c2f640d05cb1 (diff) | |
download | src-e7314192cea3cfade4468c8656cd82f2a95837da.tar.gz src-e7314192cea3cfade4468c8656cd82f2a95837da.zip |
sound(4): Fix order of parameters for custom equalizer band pass filter.
When specifying a custom band-pass filter for the sound(4) equalizer,
use the same format as used by the resulting C-code define to avoid
confusion.
PR: 195760
Sponsored by: NVIDIA Networking
-rw-r--r-- | sys/tools/sound/feeder_eq_mkfilter.awk | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/tools/sound/feeder_eq_mkfilter.awk b/sys/tools/sound/feeder_eq_mkfilter.awk index f956ffe1d082..f81390aef476 100644 --- a/sys/tools/sound/feeder_eq_mkfilter.awk +++ b/sys/tools/sound/feeder_eq_mkfilter.awk @@ -300,9 +300,8 @@ BEGIN { split(arg[i++], subarg, ","); FEEDEQ_TREBLE_SFREQ = 1.0 * subarg[1]; FEEDEQ_TREBLE_SLOPE = 1.0 * subarg[2]; - split(arg[i++], subarg, ","); - FEEDEQ_BASS_SFREQ = 1.0 * subarg[1]; - FEEDEQ_BASS_SLOPE = 1.0 * subarg[2]; + FEEDEQ_BASS_SFREQ = 1.0 * subarg[3]; + FEEDEQ_BASS_SLOPE = 1.0 * subarg[4]; split(arg[i++], subarg, ","); FEEDEQ_GAIN_MIN = floor(1.0 * subarg[1]); FEEDEQ_GAIN_MAX = floor(1.0 * subarg[2]); |