Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
15 commits
Select commit Hold shift + click to select a range
0ec3063
feat(ux): replace demo IN with native per-strip hardware selectors on…
masarray Nov 5, 2026
92b31c0
fix(ux): route routine Audio Setup to existing custom WebView panel; …
masarray Nov 5, 2026
d9fb671
style(mixer): put native source selector in existing IN row without d…
masarray Nov 5, 2026
78cc926
test(mixer): assert all strip IN dropdowns use verified native source…
masarray Nov 5, 2026
446cc46
build(ui): regenerate offline standalone from native mixer input and …
masarray Nov 5, 2026
c996628
test(workflow): require custom Audio I/O default and collapsed legacy…
masarray Nov 5, 2026
9eb7fe3
fix(mixer): stop showing demo SOURCE ONLY outputs beside native patch…
masarray Nov 5, 2026
b17212d
style(mixer): compact actual native channel OUT state without a fake …
masarray Nov 5, 2026
b1ec13e
build(ui): reconcile standalone HTML with native IN and authoritative…
masarray Nov 5, 2026
df89332
fix(shipped): discard non-bundled legacy mixer edits; implement First…
masarray Nov 5, 2026
712d35f
feat(native): publish verified 10-strip M4 physical source readback t…
masarray Nov 5, 2026
07624bb
feat(first-sound): wire every approved native IN strip to real M4 rou…
masarray Nov 5, 2026
cdff44f
feat(native): compact embedded driver/input/output setup on existing …
masarray Nov 5, 2026
ac9d975
feat(operator): one visible Audio I/O toolbar action; no hidden setup…
masarray Nov 5, 2026
2663269
test(native): assert per-channel IN is in shipped WebView bridge, ver…
masarray Nov 5, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 24 additions & 1 deletion integration/ApprovedNativeRuntimeSnapshot.h
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,30 @@ inline bool publishVerifiedFirstSoundState(juce::var& snapshot,
boolIs(route,"hasAcceptedRoute",true));
firstSound->setProperty("routingRevision",physicalReady
?juce::String(static_cast<juce::int64>(revision)):juce::String("0"));
// Do not write the route to the graph or change native capability flags.
// Native Windows WebView2 needs accepted physical inputs for EACH source
// strip, not the Pages demo "IN None". These are message-thread copies of
// REAL M4 accepted readback, never invented ChannelIds, FX or PCM.
juce::Array<juce::var> channels;
const auto selection=route.getProperty(
boolIs(route,"hasAcceptedRoute",true)?"acceptedRoute":"preparedM4Route",{});
const auto sourceRows=selection.getProperty("channels",{});
if(physicalReady && sourceRows.isArray() &&
sourceRows.getArray()->size()==10) {
for(const auto& source:*sourceRows.getArray()) {
if(!source.isObject()) { channels.clear(); break; }
const auto mode=source.getProperty("mode",{}).toString();
if(mode!="NONE" && mode!="MONO" && mode!="STEREO" &&
mode!="BUS") {channels.clear();break;}
auto item=std::make_unique<juce::DynamicObject>();
item->setProperty("mode",mode);
item->setProperty("left",source.getProperty("left",-1));
item->setProperty("right",source.getProperty("right",-1));
item->setProperty("main",source.getProperty("main",true));
channels.add(juce::var(item.release()));
}
}
firstSound->setProperty("channels",juce::var(channels));
// Do not write the route to the ChannelId graph or change capabilities.
snapshot.getDynamicObject()->setProperty("legacyM4",juce::var(firstSound.release()));
return physicalReady;
}
Expand Down
26 changes: 25 additions & 1 deletion tests/approved_native_m2_contract.test.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,25 @@ test("native signal evidence is produced from measured engine fields, never JS s
assert.doesNotMatch(transport,/setProperty \("rawCapturePeak", 0\.0\)/);
assert.match(bridge,/protocol\.diagnoseFirstSound/);
});
test("P0 DAW native output uses shipped ONE WebView2 source menu on every installed channel",()=>{
const bridge=read("web/approved-native-bridge.js");
const producer=read("integration/ApprovedNativeRuntimeSnapshot.h");
assert.match(bridge,/scope\.tracks\.filter\(t=>t\.kind==="audio"\)\.slice\(0,10\)/);
assert.match(bridge,/select\.route-select\[data-field="input"\]/);
assert.match(bridge,/select\.dataset\.armixPhysicalInput=String\(channel\)/);
assert.match(bridge,/select\.replaceChildren/);
assert.match(bridge,/action:"routingSourceSwitch",requestId:p\.id,channel:p\.channel/);
assert.match(bridge,/backend\.addEventListener\("arMixSourceSwitchAck"/);
assert.match(bridge,/completeNativeSourceFromReadback\(next\)/);
assert.match(bridge,/action:"monitor",value:true/);
assert.match(bridge,/action:"audioDeviceInventory"/);
assert.match(bridge,/action:"audioDeviceApply"/);
assert.match(producer,/firstSound->setProperty\("channels",juce::var\(channels\)\)/);
assert.match(producer,/boolIs\(route,"hasAcceptedRoute",true\)\?"acceptedRoute":"preparedM4Route"/);
assert.doesNotMatch(bridge,/window\.__arMixOpenAudioIO/);
// No EXE startup dependency on a second non-bundled mixer renderer:
assert.match(read("scripts/build_approved_native_gui.py"),/NATIVE_ADAPTER = ROOT \/ "web" \/ "approved-native-bridge\.js"/);
});
test("strict producer rejects JS Number identities, invalid hardware pins and fake LIVE",()=>{
const cases=[
s=>{s.device.epoch=69;},
Expand Down Expand Up @@ -432,7 +451,12 @@ test("native Windows operator can explicitly patch first physical input, arm and
const js=read("web/approved-native-bridge.js");
const main=read("src/Main.cpp");
const engine=read("src/LiveAudioEngine.h");
assert.match(js,/REAL AUDIO · FIRST SOUND/);
assert.match(js,/ADVANCED · DRIVER \/ FIRST SOUND DIAGNOSTICS/);
assert.match(js,/setup\.addEventListener\("click",openNativeAudioSettings\)/);
assert.match(js,/function openNativeAudioSettings\(\)/);
assert.match(js,/id="arNativeAudioIO"|setupButton\.id="arNativeAudioIO"/);
assert.match(js,/renderVerifiedStripInputs\(next\)/);
assert.match(js,/advanced\.append\(caption,setup,driver,inputSelect,routeBtn,armBtn,muteBtn,hardwareNote\)/);
assert.match(js,/action:"audioSetup"/);
assert.match(js,/d\.inputEndpoints\.filter\(p=>/);
assert.match(js,/d\.enabledInputs\.includes\(p\.port\)/);
Expand Down
Loading
Loading