Update js/audio-context.js

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
tryptz 2026-04-08 06:00:35 -04:00 committed by edideaur
parent 7142569741
commit 0cbfa4d3f4

View file

@ -373,15 +373,13 @@ class AudioContextManager {
}
/**
* Update a filter chain in-place. Returns true if reconnect is needed.
* Update an existing filter chain in place.
* @param {Array} chain - Filter array to update (this.filters, this.midFilters, or this.sideFilters)
* @param {Array} freqs - New frequencies
* @param {Array} types - New filter types
* @param {Array} qs - New Q values
* @param {Array} gains - New gain values
* @param {number} now - Current audio context time
* @param {string} [prop] - Property name on this to update replaced filters (e.g. 'midFilters')
* @returns {boolean} Whether graph reconnection is needed
*/
_updateFilterChain(chain, freqs, types, qs, gains, now) {
chain.forEach((filter, i) => {