Skip to content

Commit

Permalink
Implement removing of cloned filters
Browse files Browse the repository at this point in the history
  • Loading branch information
ctoth committed Mar 4, 2024
1 parent 6e52f50 commit 553b26d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/filters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export abstract class FilterManager {
}

removeFilter(filter: BiquadFilterNode) {
this._filters = this._filters.filter(f => f !== filter);
this._filters = this._filters.filter(f => f.frequency.value !== filter.frequency.value && f.type !== filter.type && f.Q.value !== filter.Q.value && f.gain.value !== filter.gain.value);
}

applyFilters(connection: any): any {
Expand Down

0 comments on commit 553b26d

Please sign in to comment.