Discussion about RealtimeEffectManager block sizes #73
Replies: 1 comment
-
Just to clarify, the issue here is not processing speed or buffer sizes but computational latency, To compensate this, the effect needs to tell the effect manager dynamically that is has a latency E.g. an effect with 1 second lookahead fills its internal buffers with the samples of the As solution, the effect manager has to supply N samples + the first buffer at the beginning |
Beta Was this translation helpful? Give feedback.
-
@mmmaisel has raised the issue in their dynamic compressor that the block size RealtimeEffectManager provides is small. Additionally RealtimeEffectManager expects this same number of samples in return. For their new dynamic compressor, this is an issue due to latency. On the other hand, they recommend that latency compensation as a solution by allowing an effect to request a certain amount of samples in advance "at the beginning or when the user changes
settings."
Turns out that this might go nicely with moving realtime allocations out of RealtimeEffectManager, so I'd like to inquire further about this. Preallocating buffers in advance totally sounds like a good idea, especially given that I'm trying to implement this in other parts of AudioIO and RealtimeEffectManager.
Beta Was this translation helpful? Give feedback.
All reactions