HISE FX and delay compensation
-
@Dan-Korneff can you measure the latency of your modules, put it in consts and make the call to set the new latency to report whenever the user changes any of the controls that affect it?
-
I would not trust every host to support dynamic latency so I‘d definitely check this thoroughly.
-
@aaronventure said in HISE FX and delay compensation:
@Dan-Korneff can you measure the latency of your modules, put it in consts and make the call to set the new latency to report whenever the user changes any of the controls that affect it?
That's definitely plan B. I guess I need to use a global variable to get this data into scriptFX?
-
@Dan-Korneff why do you need to get it into script fx in the first place?
-
@aaronventure scriptFX is the only place you can access the processBlock to call Engine.setLatencySamples()
-
@Dan-Korneff Why do you need to access processBlock?
If you need the sample rate / block size for the calculation, attach a broadcaster to the processing specs.
-
@Dan-Korneff I'm calling it from a control callback where sample offset is adjusted and it works just fine (in Reaper).
-
@Christoph-Hart I was just following your Latency Test repo
-
@aaronventure Damn... Just tested and it works like you said. Happy days!
-
@Dan-Korneff ah the example might precede the broadcaster addition, so that‘s kind of outdated as a best practice but if it works…