dosbox-staging:jn/filter-cutoff-fix

Last commit made on 2024-04-22
Get this branch:
git clone -b jn/filter-cutoff-fix https://git.launchpad.net/dosbox-staging

Branch merges

Branch information

Name:
jn/filter-cutoff-fix
Repository:
lp:dosbox-staging

Recent commits

b95bd48... by John Novak <email address hidden>

Sync 'rate' and 'blocksize' mixer settings when negotiated with SDL

f136a96... by John Novak <email address hidden>

Fix FluidSynth & MT-32 crashing when host sample rate is set to 8000 Hz

72782d0... by John Novak <email address hidden>

Fix crash when filter cutoff frequencies are not below half of the sample rate

The IIR library rightfully throws an exception when you attempt to set a
filter's cutoff frequency at or above the Nyquist rate (half the sample
rate). So with this change we're always clamping the filter cutoff
frequencies just below the Nyquist rate.

The reason why we're clamping and not turning the filter off is because
this is an edge case that usually only happens when using 20,050 or
lower host rates, and it's a lot easier to just clamp than to disable
the filter and handle the state management correctly.

86b64e0... by John Novak <email address hidden>

Improve audio filter logging

1e75b8e... by John Novak <email address hidden>

Address PVS-Studio warnings

84d9503... by John Novak <email address hidden>

Sync 'tandy_fadeout' setting when defaulted

c5163eb... by John Novak <email address hidden>

Sync 'opl_fadeout' setting when defaulted

d34eb1a... by John Novak <email address hidden>

Default to 'auto' when 'opl_filter' is set to invalid value

081a978... by John Novak <email address hidden>

Default to 'modern' when 'sb_filter' is set to invalid value

888f87e... by John Novak <email address hidden>

Sync 'sb_filter' & 'opl_filter' settings when defaulted