Update js/audio-context.js
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
parent
7142569741
commit
0cbfa4d3f4
1 changed files with 1 additions and 3 deletions
|
|
@ -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} chain - Filter array to update (this.filters, this.midFilters, or this.sideFilters)
|
||||||
* @param {Array} freqs - New frequencies
|
* @param {Array} freqs - New frequencies
|
||||||
* @param {Array} types - New filter types
|
* @param {Array} types - New filter types
|
||||||
* @param {Array} qs - New Q values
|
* @param {Array} qs - New Q values
|
||||||
* @param {Array} gains - New gain values
|
* @param {Array} gains - New gain values
|
||||||
* @param {number} now - Current audio context time
|
* @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) {
|
_updateFilterChain(chain, freqs, types, qs, gains, now) {
|
||||||
chain.forEach((filter, i) => {
|
chain.forEach((filter, i) => {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue