Skip to content

Commit

Permalink
Added methods to add and remove multiple filters.
Browse files Browse the repository at this point in the history
  • Loading branch information
ctoth committed Feb 16, 2024
1 parent 15c47ae commit b15d9ba
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/filters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,14 @@ export abstract class FilterManager {
return this._filters;
}

addFilters(filters: BiquadFilterNode[]) {
// todo: be more efficient
filters.forEach(filter => this.addFilter(filter));
}


removeFilters(filters: BiquadFilterNode[]) {
filters.forEach(filter => this.removeFilter(filter));
}
}

0 comments on commit b15d9ba

Please sign in to comment.