Skip to content

P2 Real-time audio reliability + automatic output + latest ArSonMix GUI - #6

Closed
masarray wants to merge 6 commits into
fix/p2-native-output-monitor-diagnosticsfrom
fix/p2-realtime-glitch-telemetry-latest-gui
Closed

masarray wants to merge 6 commits into
fix/p2-native-output-monitor-diagnosticsfrom
fix/p2-realtime-glitch-telemetry-latest-gui

Conversation

@masarray

Copy link
Copy Markdown
Owner

User's Windows evidence

  • Audio now works but drops out every few seconds with a 48k/480 Windows Audio device and third-party VST3.
  • Manual output arm caused confusion.
  • Need internal diagnostics that can identify whether driver or VST callback is late, no naive logging in audio callback.
  • Must carry newest UI work from GUI branch.

Improvements

  • Auto-enable natural mic→FX→master→device output; maintain optional emergency output mute in SIGNAL CHECK.
  • Remove repeated synchronous 3-second AudioDeviceManager XML polling; serialize only upon ChangeBroadcaster notifications.
  • Host-callback cost and scheduling-gap counters (worst duration, >80% / >100% budget, slow plugin calls), atomic-only RT publication; not claiming driver-confirmed xruns.
  • Bounded SPSC message-thread→background writer with 1-Hz snapshots and event records; rotating local diagnostic log and Open Log action.
  • Wire DRY TEST action (previously displayed but missing handler), plugin structural action diagnostics, and UI deadline info.
  • Integrate latest ArSonMix visual branch fix/fader-thumb-symmetry-polish at GUI commit a09e0c2 (PAN horizontal controls, candy-metal buttons, faders, branding); embed native VST3 bridge and diagnostic module.

Risks and acceptance

  • Automatic audible microphone output can feed back through speakers: use low-level wired headphones.
  • Structural plugin edits still detach/re-attach callback; no seamless graph swap.
  • CI compiler, JS syntax and realtime primitive tests must pass. Physical stutter root cause needs exported diagnostic log after reproducible 2-3 minute ASIO/WASAPI and DRY TEST tests.
  • Do not merge until hardware testing; PR draft.

Copy link
Copy Markdown
Owner Author

FINAL Windows CI GREEN — Realtime Diagnostics + newest ArSonMix GUI

Commit: 6553b815d80c18384f5fdb12c86c9538f9fc62d9
Windows workflow: https://github.com/masarray/arsonmix/actions/runs/40151694944
EXE artifact: https://github.com/masarray/arsonmix/actions/runs/40151694944/artifacts/12582872019

Confirmed by CI: MSVC x64 Release, JUCE/WebView2, native JS syntax, RT primitive CTest, package/upload.

Changed: output auto-routes when device is ready (panic mute optional), event-driven audio device settings persistence instead of synchronous 3-second polling, bounded async file diagnostics logging, callback worst/last and deadline counters, long callback timing gap counters, VST3 per-slot processing timing, audio-device restart counters, native DRY TEST action, and latest UI from fix/fader-thumb-symmetry-polish at commit a09e0c2 (PAN-slider/candy metal controls). Preserved correct one-based event channel ID mapping (app.js converts strip index to channel+1).

Not proven: recurring physical dropouts fixed. Root cause needs logs comparing DRY TEST on/off and Windows Audio VB Cable→Realtek versus one full-duplex ASIO device. The 960-sample plugin latency is not CPU processing time and counters are not driver-confirmed xruns. Keep PR draft until Windows hardware trial.

Diagnostic log is local in user app-data AR-MIX-Studio/diagnostics/audio-diagnostics.log, accessible via SIGNAL CHECK → OPEN DIAGNOSTIC LOG. File output occurs on a worker; no log writes on audio callback. The app will now output sound automatically, so use headphones at low volume to prevent mic feedback.

Copy link
Copy Markdown
Owner Author

Backlog reconciliation — 2026-11-01. Closing as SUPERSEDED/ARCHIVED, not merged. This early P1/P2 branch is a historical stacked baseline (2026-10-24/25) that targets obsolete parent branches and overlapping native/GUI files. Its useful product requirements are now covered by the merged live 10CH/VST code plus PRD/ARD v5 and active M-U1 #266 / GUI #265. It is NOT certified as safely cherry-pickable on current main.

Canonical workflow: PRD v5, ARD v5, dynamic engine issue #192. Any unique test, VST compatibility or safety insight should be deliberately ported to #266, #265, #180 or #15 against current main with fresh proof—never merge this historical stacked head blindly. Original commits remain accessible; branch is not deleted.

@masarray masarray closed this Oct 31, 2026
masarray added a commit that referenced this pull request Nov 6, 2026
… integration header

Windows CTest #6 proved the runtime includes integration/ApprovedNativeV8Projection.h, not similarly named src/ file. Preserve independent instance/catalog identities in active graph, export authoritative rack bypass readback, validate both with real C++ projection assertions and source-of-truth test. Retain fail-closed malformed identity behavior.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant