ScarletsFiction/SFMediaStream

Audio Connect multiple

Tuner32 opened this issue · 2 comments

How can I connect multiple effect input node? From ScarletsAudioStreamer?

Of course, you can connect it like below:

Input -> Effect1 -> Effect2 -> Destination

InputNode.connect(Effect1.input);
Effect1.output.connect(Effect2.input);
Effect2.output.connect(AudioContext.destination);

or parallely like this:

        --Effect1 --v
Input --|           |--> Destination
        --Effect2 --^
InputNode.connect(Effect1.input);
InputNode.connect(Effect2.input);
Effect1.output.connect(AudioContext.destination);
Effect2.output.connect(AudioContext.destination);

Maybe you can also interested to try Blackprint for playing the WebAudio Effects.
But sorry if you found bugs, because it's pretty difficult to maintain multiple project alone 😅.

You are project is cool. It work well. Thank you . I sloved problem.