cutterbl / soundtouchjs-audio-worklet

AudioWorkletNode and AudioWorkletProcessor implementing SoundTouchJS
GNU Lesser General Public License v2.1
70 stars 10 forks source link

Why is sountouch working as pseudo node? #1

Closed floydback closed 4 years ago

floydback commented 4 years ago

@cutterbl do you understand why SoundTouch can't work like a real node? Is there a fundamental problem?

cutterbl commented 4 years ago

@floydback I'm afraid you'll have to elaborate on what you mean by 'work like a real node'?

floydback commented 4 years ago

@cutterbl I mean AudioNode like GainNode or DealyNode. Now you need to connect/disconnect to the destination each time when play/stop audio. Is there a fundamental reason why PitchShifter cannot be connected to? Another drawback you can't use it with MediaElementSourceNode without decoding audio data.

cutterbl commented 4 years ago

@floydback As this is more a question (and one other's might ask), I wrote this post in answer.