Repository navigation
Fix correctness findings from the technical review - #53
Merged
Merged
Conversation
stephanterning
marked this pull request as ready for review
October 18, 2026 08:52
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fix the 17 code bugs B1, B2 and B4–B18 from the technical review merged in #52. Repeated plugin preparation now detaches the analysis thread before replacing its stream, Sync produces allocation-free bar impulses across rounded block boundaries, and malformed or incomplete host/project state is handled safely.
Auto gain preserves its current level when peak history is lost (for example while the plugin editor is closed), clears the incomplete history and requires a fresh ten-second hold before increasing. Current peaks can still lower gain immediately. Regression tests cover gain preservation, the restarted hold and immediate reduction. The scheduler API also drops its unused stream-position argument.
The remaining fixes cover small-block ring capacity, time-signature changes, auto-gain history after UI stalls, deferred settings writes, stopped-device recovery, per-instance diagnostics, host keyboard shortcuts, atomic Sync status, repeated view selection, stereo statistics and the flaky spectrum stress test. Shared core helpers and optional offline checks of the actual JUCE plugin processors provide regression coverage.
B3 keeps the documented Raspberry Pi OS Trixie baseline for published binaries. Adding Bookworm compatibility is separate work; this PR does not change the release build environment. Broader refactors, performance work and release/CI findings remain in the report.
Validation:
VISONA_BUILD_PLUGIN_CHECKS=ON). Both processBlock checks counted zero allocations.The manual, changelog, plugin documentation and technical-review follow-up are updated. The website presentation was reviewed; these are correctness fixes and introduce no feature requiring a presentation-page addition.
Physical audio-device failure/reconnection and DAW integration still need smoke testing. No Pi deployment or Windows/Linux plugin build was performed. The concurrent Sync status check runs in the macOS processor harness; the TSan suite covers the core library.