Allows creating an array of AudioNode instances ("effects") by passing the given AudioContext
to createEffects. The effects created by createEffects, if any, are then sequentially
connected to each other and finally to the originalOutputNode. If effects are created, the
first one is returned as outputNode so all future playback can be routed through all the
effects. If no effects were created, originalOutputNode is returned as outputNode.
Allows creating an array of
AudioNode
instances ("effects") by passing the givenAudioContext
tocreateEffects
. The effects created bycreateEffects
, if any, are then sequentially connected to each other and finally to theoriginalOutputNode
. If effects are created, the first one is returned asoutputNode
so all future playback can be routed through all the effects. If no effects were created,originalOutputNode
is returned asoutputNode
.Some possible connection chains:
effects[0]
(outputNode
) ->effects[1]
->effects[2]
->originalOutputNode
effects[0]
(outputNode
) ->originalOutputNode
originalOutputNode
(outputNode
)