vst-rs icon indicating copy to clipboard operation
vst-rs copied to clipboard

'Info' struct doesn't get updated when calling 'get_info()' when plugin updates field 'initialDelay'

Open MirkoCovizzi opened this issue 5 years ago • 0 comments

Since the initial Info struct is cloned at each call of get_info(), it's not possible to collect any changes to the struct coming from the vst plugin. For example, compressors or limiters update the initialDelay field of the AEffect struct when they change type of algorithm, for example linear phasing algorithms require a higher delay needed for a correct delay compensation.

For now I solved by tapping into the AEffect struct and reading the updated initialDelay value from there, but I think a crate fix is needed here.

After a little bit of digging I found out that the issue is that some host dispatch OpCodes are missing, in particular IOChanged.

MirkoCovizzi avatar Mar 31 '20 14:03 MirkoCovizzi