memberof class Filter { /** The node to connect for the filter to the previous filter. */ public destination : AudioNode ; /** The node to connect for the filter to the previous filter. */ public source : AudioNode ; param { AudioNode } destination param { AudioNode } source constructor ( destination , source ? ) { this . init ( destination , source ) ; } /** Reinitialize */ protected init ( destination , source ? ) { this . destination = destination ; this . source = source || destination ; } param { AudioNode } destination public connect ( destination ) { this . source . connect ( destination ) ; } /** Completely disconnect filter from destination and source nodes. */ public disconnect ( ) { this . source . disconnect ( ) ; } /** Destroy the filter and don't use after this. */ public destroy ( ) { this . disconnect ( ) ; this . destination = null ; this . source = null ; } } export { Filter } ;