ScarletsFiction/SFMediaStream

How can I receive and stream again?

Tuner32 opened this issue · 3 comments

I want receive audio data from ScarletsAudioStreamer after filter and I want send by ScarletsMediaPresenter How can I do that?

You need to disconnect the presenter's AudioNode from the destination and connect it to your effect, and then connect your effect into presenter's destination.

Presenter -> Effect -> Destination

ppDelay = ScarletsMediaEffect.pingPongDelay();
// Increase the gain by using mix when using media effect
ppDelay.mix(20);
// Try disconnect from presenter's original destination first
presenterInstance.disconnect(presenterInstance.destination);
presenterInstance.connect(ppDelay.input);
ppDelay.output.connect(presenterInstance.destination);

I think I am idiot. I just tried audiostream and used audioconnect fuction. Thank you. You help my project almost all.

It's okay, good luck!