Ability to change audioPlugin reported latency dynamically?
2 次查看(过去 30 天)
显示 更早的评论
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 个评论
回答(1 个)
Jimmy Lapierre
2024-10-11
编辑:Jimmy Lapierre
2024-10-11
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 个评论
Jimmy Lapierre
2024-10-11
I'll let you know if I need reproduction code, but for now I'll do some investigation with what I have.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Audio Plugin Creation and Hosting 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!