h39s / AQUA

A system-wide parametric equalizer interface for Windows
GNU General Public License v3.0
159 stars 7 forks source link

Sort filters in backend when updating frequency #28

Closed selinali2010 closed 1 year ago

selinali2010 commented 1 year ago

Bug fix :)

xenown commented 1 year ago

Just to confirm, this change doesn't actually fix any noticeable bugs right? It is simply keeping the filters in state.txt sorted?

selinali2010 commented 1 year ago

@xenown It does fix a noticeable bug - just not in the UI. Without this fix, when a filter's frequency is altered so that the ordering of the filters changes, any subsequent changes to its gain will look correct in the UI but will actually adjust the gain of the filter that used to be at that index in the audio (and state.txt). This can be observed by making the changes then refreshing the UI - it will change to match the state.txt results.