ScarletsFiction / SFMediaStream

HTML5 media streamer library for playing music, video, playlist, or even live streaming microphone & camera with node server
MIT License
102 stars 30 forks source link

Audio Connect multiple #18

Closed Tuner32 closed 3 years ago

Tuner32 commented 3 years ago

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

StefansArya commented 3 years ago

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 😅.

Tuner32 commented 3 years ago

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