Hello,
I’m currently working on capturing sound from microphone (already achieved - ported cpp sample to c#). Now I need to delay this sound playback (or delay captured sound from mic?) by certain amount of time which is also dynamically changing through runtime.
I already tried to create dsp on mic channel like that:
RuntimeManager.CoreSystem.createDSPByType(DSP_TYPE.DELAY, out var delayDSP); _channel.addDSP(0, delayDSP); delayDSP.setActive(true); delayDSP.getNumParameters(out var index); // delay num parameter delayDSP.setParameterFloat(index, CurrentDelay * 1000f); Debug.Log($"Parameter {delayDSP} | ParameterIndex: {index} | CurrentDelay: {CurrentDelay}");
But it didn’t worked. When I changed DSP type to Echo and left the rest code unchanged it is working out of box. So maybe I’m trying to achieve delay in wrong way?
I’ve also tried to add the same dsp (Type Delay) to output channelGroup but also didn’t worked.
Pointing the right direction is welcome