Ability to change audioPlugin reported latency dynamically?
2 views (last 30 days)
Show older comments
I am developing an stft based audioPlugin which allows the user to set the size of the window applied to incoming data. When the window size is changed (from 512 to 1024 for example), the algorithm's latency changes.
I have setLatencyInSamples being called in reset. When I build and run the plugin in Ableton, the initial reported latency Ableton shows is correct based on the window length's default parameter.
However, I can't seem to get the plugin to dynamically update the reported latency Ableton sees if the user changes the window length in real time. In my callback for changing the window length parameter, set.windowLength, I am calling reset (which is calling setLatencyInSamples providing the latest window length value). It doesn't seem that this is updating the latency Ableton sees.
Is there something I am doing wrong? Is there maybe a workaround? Or does dynamically changing the reported latency with setLatencyInSamples while the plugin is running not supported?
Thanks in advance!
0 Comments
Answers (1)
Jimmy Lapierre
on 11 Oct 2024
Edited: Jimmy Lapierre
on 11 Oct 2024
There are some limitations, for example latency cannot be changed during playback is active. But I'm not sure that's the case here.
- Are you able to change the latency before playing any audio in the DAW?
- Does it make a difference if you try VST, VST3, etc.?
- Could you have a look at the FastConvolver example? You might need to use resetImpl if you plugin is a system object (or you might want to try as a system object, like in that example).
edit audiopluginexample.FastConvolver
2 Comments
Jimmy Lapierre
on 11 Oct 2024
I'll let you know if I need reproduction code, but for now I'll do some investigation with what I have.
See Also
Categories
Find more on Audio Plugin Creation and Hosting in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!