Repository navigation
Fix setting flushing for DISTRHO-based VST plugins - #11895
saintmatthieu merged 1 commit into
Conversation
📝 WalkthroughWalkthroughThe VST3 integration adds a shared Estimated code review effort: 3 (Moderate) | ~20 minutes Sequence Diagram(s)sequenceDiagram
participant VST3Wrapper
participant VST3Utils
participant VST3Processor
VST3Wrapper->>VST3Wrapper: ConsumeChanges(settings)
VST3Wrapper->>VST3Utils: CountChannels(main input and output buses)
VST3Utils-->>VST3Wrapper: Input and output channel counts
VST3Wrapper->>VST3Processor: Process(silent buffers, limited sample block)
VST3Processor-->>VST3Wrapper: Process completed
Merge Risk: 🟡 Moderate · up to The PR changes idle parameter delivery to use silent audio processing, but initialization and finalization can also process and save plugin state when no changes are pending, and processing failures may be ignored. This could cause unintended plug-in state changes or inconsistent lifecycle behavior, so merge should wait for the guard and explicit handling of processing failures. 🚥 Pre-merge checks | ✅ 4✅ Passed checks (4 passed)
Full details: Linked Issues checkExplanation The changes address issue Full details: Description checkExplanation The description identifies issue Warning Linked repositories: Public OSS repositories can only analyze public repositories installed in this organization. No linked repositories were analyzed; skipped Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI (base), Organization UI (inherited)
Review profile: CHILL
Plan: Team
Run ID: 661bc379-c259-48dc-936b-e3d8183012ec
📒 Files selected for processing (5)
au3/libraries/au3-vst3/VST3Instance.cppau3/libraries/au3-vst3/VST3Utils.cppau3/libraries/au3-vst3/VST3Utils.hau3/libraries/au3-vst3/VST3Wrapper.cppau3/libraries/au3-vst3/VST3Wrapper.h
Included review availability: Your plan provides up to 10 included reviews per hour; 9 remain after this review.
|
I guess those issues aren't surfacing when any of those is true:
it only happen if the stream is actually closed |
|
No, I don't see that it has a relation to the stream being open or not when idle. What makes you think this? |
|
the fact that we constantly create and destroy a stream is in my understanding a bad design as if the current project has the engine active then the stream should be open until the project is not the one holding the engine active then we could close the stream when de-activating the engine on that project |
|
The VST3 instances and our settings don't even have a idea of the audio traffic we open and close for monitoring, AFAICS. |
|
Didn’t you said that the parameter were restored on playback if changed while stopped but were correctly changed if changed during playback? |
|
Yes, because during playback, we don't pass null input and output pointers but real data. |
|
outch then it's not monitoring but input checking :( that's a P0 bug to my ears |
|
Yeah. Basically we can only flush setting changes during playback. I'm also amazed that it's always been in AU3. |
e849820 to
96414b7
Compare
Fix setting flushing for DISTRHO-based VST plugins (#11895)
Resolves: #11892
See the ticket for an introduction.
For devs: in our VST3 implementation we use a Process call to flush our setting changes to the plugin. If done during playback, no problem, but when we're idle, we're making this call with null input and output pointers and zero frame size.
While the VST3 standard allows this, the DISTRHO plugin framework (used by many plugins on Linux) early returns when that's the case:
https://github.com/DISTRHO/DPF/blob/4238e1c7f0351bbe488d79f0899c540543ac7583/distrho/src/DistrhoPluginVST3.cpp#L1458
Meanwhile, the code that evaluates the input parameters is further down: https://github.com/DISTRHO/DPF/blob/4238e1c7f0351bbe488d79f0899c540543ac7583/distrho/src/DistrhoPluginVST3.cpp#L1558
Provided that it's approved, this fix may be cherry-picked to AU3.
Recommended:
QA: