debug(bounce): EVT_REG/BRIDGE_EVT_RX/WI_QUERY diag + fix PUSH_SENT typo
This commit is contained in:
@@ -41,6 +41,17 @@ window.__sfDiagShow = function () {
|
||||
// từ BOUNCE_START.
|
||||
window.__sfHBCount = 0;
|
||||
setInterval(function () { window.__sfHBCount++; if (window.__sfDiag) window.__sfDiag('HB:' + window.__sfHBCount); }, 250);
|
||||
// WI_QUERY: bridge write_index liveness via proven invoke path (event-free).
|
||||
window.__sfWICount = 0;
|
||||
setInterval(function () {
|
||||
window.__sfWICount++;
|
||||
if (!window.__TAURI__ || !window.__TAURI__.core) return;
|
||||
window.__TAURI__.core.invoke('bridge_status').then(function (s) {
|
||||
if (window.__sfDiag) window.__sfDiag('WI_QUERY#' + window.__sfWICount + ' idx=' + (s && s.write_index) + ' conn=' + (s && s.connected ? 1 : 0));
|
||||
}).catch(function (e) {
|
||||
if (window.__sfDiag) window.__sfDiag('WI_QUERY#' + window.__sfWICount + ' err=' + String(e).slice(0, 80));
|
||||
});
|
||||
}, 2000);
|
||||
|
||||
// ── Dedicated per-track MIDI channel allocation ──
|
||||
// FluidSynth has 16 channels; if two tracks share a channel, arming one track
|
||||
|
||||
Reference in New Issue
Block a user