Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
163 commits
Select commit Hold shift + click to select a range
dc5bf5c
feat(M5): stable ChannelId VST3 instance lease bank for mono/stereo C…
masarray Oct 31, 2026
d7bdd4c
feat(M5): expose epoch/revision-gated M4 FX lease migration to stable…
masarray Oct 31, 2026
09f2c0c
test(M5): render real JUCE FX on CH1, CH11, Group and FX Return with …
masarray Oct 31, 2026
15ac5f2
test(M5): use verified accepted Group topology and vendor-prepared 32…
masarray Oct 31, 2026
d5ebc0b
docs(M5): native Group/CH11 FX state migration, global console contra…
masarray Oct 31, 2026
baf6e7f
feat(M5): bind VST3 owner lease to SAME atomic native PCM snapshot; d…
masarray Oct 31, 2026
9184a90
test(M5): bind real JUCE FX bank to same native PCM snapshot, reject …
masarray Oct 31, 2026
bbce581
fix(M5): atomic FX lease/PCM device epoch and revision admission with…
masarray Oct 31, 2026
f34334a
test(M5): preserve legacy absolute FX retirement counter baseline; ru…
masarray Oct 31, 2026
c492f80
feat(M-U1): atomically prepare/publish full M4 10CH+4AUX VST3 and MAI…
masarray Oct 31, 2026
2bbf9f0
test(M-U1): prove M4 VST/PCM + MAIN/MONITOR parity and non-destructiv…
masarray Oct 31, 2026
1d68cc3
engine(m-u1): reconcile main and preserve occupied CH1 external FX le…
masarray Nov 1, 2026
5dc2f14
test(contracts): follow current v5/v6 entrypoint authority while reta…
masarray Nov 1, 2026
8364d53
test(contracts): correct literal regex escaping for v5/v6 authority c…
masarray Nov 1, 2026
4e80c4b
engine(m-u1): preserve mono source pan through stereo processing and …
masarray Nov 1, 2026
96c87c7
fix(integration): align native ACK with opaque WebView IDs and reject…
masarray Nov 1, 2026
cf3f2b9
feat(integration): lossless flat native v6 readback and typed role wi…
masarray Nov 1, 2026
5f91b10
test(console-v6): assert GROUP and FX Return by stable ChannelId, nev…
masarray Nov 1, 2026
dd55b8f
feat(engine): add truthful JUCE control-thread Console v6 source and …
masarray Nov 1, 2026
b2417e7
feat(engine): connect actual JUCE M4 status to native v6 subscribe/AC…
masarray Nov 1, 2026
9844e25
fix(engine): retain JUCE output pin var lifetime through native readback
masarray Nov 1, 2026
b004c4d
test(engine): actual M4 JUCE callback evidence to lossless v6 snapsho…
masarray Nov 1, 2026
1a0a4c8
merge(engine): reconcile v7 main and validated native v6 codec #272 p…
masarray Nov 1, 2026
8704484
feat(engine): reuse #272 canonical uint64/opaque ID codec; exact per-…
masarray Nov 1, 2026
9efdc75
feat(engine): first-sound physical MONO source transaction on install…
masarray Nov 1, 2026
dbc81de
fix(engine): hold JUCE var lifetime when asserting accepted source ro…
masarray Nov 1, 2026
fa5af9e
engine(s0): canonical native v8 wire serializer, compiled C++ fixture…
masarray Nov 1, 2026
c604637
engine(s0): route real JUCE snapshot and ACK through single native v8…
masarray Nov 1, 2026
03f8bfd
test(engine): compare exact native C++ fixture bytes to JUCE producer…
masarray Nov 1, 2026
d1a5ce5
engine(s0): adopt exact v8 four-event native fixture ABI, valid epoch…
masarray Nov 1, 2026
9619be6
test(engine): check in 4-event JSON output from portable native C++ v…
masarray Nov 1, 2026
7a3c1e0
engine(s0): reconcile current v8 main; exact FAT four-event native pr…
masarray Nov 1, 2026
c87ec28
fix(engine): source routing schema-v2 MONO pin transaction with indep…
masarray Nov 1, 2026
c58f06f
test(engine): execute installed M4 channel FX PCM IN5→CH07→MAIN, mute…
masarray Nov 1, 2026
75ea5f4
fix(engine): use JUCE DynamicObject one-argument getProperty in schem…
masarray Nov 1, 2026
4683ce6
test(engine): verify production CH07 MUTE declick ramp and steady sil…
masarray Nov 1, 2026
d4035eb
test(engine): PCM-accurate CH07 de-click gate and native VST3 owner p…
masarray Nov 1, 2026
157bf69
fix(engine/RT): preserve 64-sample channel MUTE/PRE-send envelope acr…
masarray Nov 1, 2026
9fbff70
feat(engine S1): route native ConsoleIntent SOURCE/fader/pan/mute/sol…
masarray Nov 1, 2026
0348269
feat(engine S1): native live accepted fader/mute/solo/pan readback fo…
masarray Nov 1, 2026
4cec990
feat(engine S1): real native ConsoleIntent VST3 bypass and vendor edi…
masarray Nov 1, 2026
f8af366
feat(engine): one-click native per-channel MAIN/NONE and mono/stereo …
masarray Nov 1, 2026
ab402b8
feat(engine): first-open silent native session is typed schema v2, en…
masarray Nov 1, 2026
636489a
feat(engine): expose real one-gesture native CHAN OUT/processing-form…
masarray Nov 1, 2026
06957b4
fix(engine): accept validated JUCE int32 or int64 epoch/revision for …
masarray Nov 1, 2026
9336677
feat(engine): realtime PRE/POST AUX FX-return send levels with sample…
masarray Nov 1, 2026
d270514
feat(engine): independent realtime MONITOR send controls for 10 input…
masarray Nov 1, 2026
db01c89
engine: prime MONITOR at accepted PCM level, validate real PRE/POST A…
masarray Nov 1, 2026
a83bc1a
feat(engine): one-gesture native SEND to existing VST3 AUX return wit…
masarray Nov 1, 2026
704cbff
fix(engine/MSVC): use explicit JUCE var integer conversion for native…
masarray Nov 1, 2026
1d089ae
fix(engine/RT): one atomic PRE/POST AUX send renderer for all native …
masarray Nov 1, 2026
1d1fcdd
feat(engine): connect real-time PRE/POST AUX send-level ConsoleIntent…
masarray Nov 1, 2026
fe28110
fix(engine): maintain zero-automation static AUX PCM fast path; switc…
masarray Nov 1, 2026
fd0087f
fix(engine): deduplicate existing native SET_SEND_LEVEL handler; reta…
masarray Nov 1, 2026
d42224c
feat(engine): real AUX1–4 return faders after hosted FX with native S…
masarray Nov 1, 2026
40a0597
fix(engine DSP): AUX1-4 post-VST fader 64-sample dezipper across tiny…
masarray Nov 1, 2026
0553135
fix(engine): M1 sample-continuous fader, offline AUX parity, bounded …
masarray Nov 2, 2026
9f15f2b
fix(worker): release Show snapshots, vendor blobs and completion clos…
masarray Nov 2, 2026
773fbdd
feat(engine): reconcile AUX realtime control, prove ownership; gate M…
masarray Nov 2, 2026
6c0f0a5
refactor(engine): enforce one native render owner; retire dead stereo…
masarray Nov 2, 2026
388785c
test(contracts): follow single render authority; reject diagnostic VS…
masarray Nov 2, 2026
1e21bf0
test(engine): enforce CH1 leased FX and FX-free diagnostics after leg…
masarray Nov 2, 2026
c8d2e3f
refactor(engine): fold M1 into sole #266 owner and gate one-callback …
masarray Nov 2, 2026
12fc5a5
fix(ci): run ENGINE ownership preflight as valid multiline YAML befor…
masarray Nov 2, 2026
7851452
test(contract): reconcile live engine CI with normative v8 socket, ar…
masarray Nov 2, 2026
84b805c
feat(engine): canonical 64-sample RT coalescing for ChannelId fader, …
masarray Nov 2, 2026
44884df
perf(engine): canonical ChannelId lookup for realtime GUI control and…
masarray Nov 2, 2026
a3cf27b
release(engine): ship sole-owner exact-SHA Windows 10CH+4AUX experime…
masarray Nov 2, 2026
c92ac65
fix(ci): use parser-safe literal check for retired M4 artifact owner
masarray Nov 2, 2026
c2ae04f
fix(release): attest exact PR head SHA before native CI and hardware …
masarray Nov 2, 2026
593bee1
test(engine): assert 64-sample ChannelId FX/group ramp across 32-fram…
masarray Nov 2, 2026
f9f8c1c
feat(engine): coherent 64-bit M4 GUI control snapshots and unified al…
masarray Nov 2, 2026
99ecaf5
fix(engine): fail-closed nonblocking exclusive PCM render permit for …
masarray Nov 2, 2026
9f16455
fix(tests): read atomic native stereo/mute/solo snapshot after render…
masarray Nov 2, 2026
ef6da2e
feat(engine): truthfully admit native M4 GUI operations and physical …
masarray Nov 2, 2026
9d0ecab
fix(engine): remove nonexistent include from physical M4 console admi…
masarray Nov 3, 2026
d7602c5
feat(engine): canonical ChannelId realtime MUTE/SOLO closure and VST3…
masarray Nov 3, 2026
fdebcd3
feat(engine M5.3): live ChannelId physical SOURCE crossfade with cano…
masarray Nov 3, 2026
fdb9f6e
safety(engine M5.3): reject latent VST3 leases before uncorrected Gro…
masarray Nov 3, 2026
7c36b9c
merge(engine E1): reconcile latest GUI checkpoint + native M5.3; reje…
masarray Nov 3, 2026
8494d22
feat(engine E2): real ChannelId VST3 bypass and editor lease bound to…
masarray Nov 3, 2026
3691727
test(engine E1): exercise invalid physical source within a legal stru…
masarray Nov 3, 2026
3f86063
feat(engine E2): preserve hosted ChannelId VST across atomic GROUP gr…
masarray Nov 3, 2026
cded954
fix(engine E2): make native IN/OUT ACK match actual serial and parall…
masarray Nov 3, 2026
c3ea53b
feat(engine E2): admit ChannelId PCM into sole installed JUCE callbac…
masarray Nov 3, 2026
fcae00e
feat(engine E2): migrate occupied original CH1/Orbit rack into one ph…
masarray Nov 3, 2026
a51696f
fix(engine E2): preserve real bypass contract and expose native PCM p…
masarray Nov 3, 2026
8d138b3
fix(engine E2 CI): validate CH1 owner retirement with void poll API a…
masarray Nov 3, 2026
02df2ba
feat(engine E3): physical ChannelId GROUP/FX RETURN bus transactions …
masarray Nov 3, 2026
51e72d3
fix(engine E3): reject legacy Show save/recall if real native BUS top…
masarray Nov 3, 2026
7a6a8a4
feat(engine E4): wire real ChannelId GROUP and wet FX RETURN controls…
masarray Nov 3, 2026
45b9289
test(engine E4): execute real ROUTING native BUS UI under fake JUCE e…
masarray Nov 3, 2026
f8f69e0
fix(engine E4): correct live BUS capability honesty, stale device epo…
masarray Nov 3, 2026
e9de6dd
fix(engine E4): guard original M4 AUX1-4 ownership against native BUS…
masarray Nov 3, 2026
81a80e8
fix(engine): preserve ChannelId BUS topology across rejected legacy r…
masarray Nov 3, 2026
93ba8c8
fix(engine): retain matching M4 fallback when fixed ChannelId admissi…
masarray Nov 3, 2026
3f016b9
fix(audio): block dry-only dynamic FX returns until real VST3 lease e…
masarray Nov 3, 2026
8a94227
fix(release): prevent abandoned 10-channel GUI from shipping as ArSonMix
masarray Nov 3, 2026
2d29a9d
test(ci): align Windows upload assertions with mandatory integrated G…
masarray Nov 3, 2026
45823b3
feat(console): embed approved single-console design in native JUCE host
masarray Nov 3, 2026
d1716f3
test(console): enforce native approved WebView2 root and repair CI ar…
masarray Nov 3, 2026
c02769e
test(native-console): verify new WebView2 entrypoint while preserving…
masarray Nov 3, 2026
d597ea3
fix(packaging): attest approved native Console source in Windows exec…
masarray Nov 3, 2026
6da9044
fix(windows): quote native console HTML marker correctly in PowerShel…
masarray Nov 3, 2026
999c59e
feat(console): connect approved GUI toolbar to real ASIO/WASAPI setup…
masarray Nov 3, 2026
67e0242
test(native): assert approved WebView2 root instead of retired index_…
masarray Nov 3, 2026
6358bec
feat(engine): admit dynamic CH11+ in same native ChannelId PCM graph
masarray Nov 3, 2026
450a790
fix(console): expose real silent native route for first direct IN ges…
masarray Nov 3, 2026
60dbf7d
test(channelid): prove CH11 native PCM addition, verified IN2 patch a…
masarray Nov 3, 2026
22dbd84
feat(console): native Group Selected and actual accepted Group/Main s…
masarray Nov 3, 2026
a9d29aa
fix(console): enforce channel-role controls and truthful native BUS p…
masarray Nov 3, 2026
b94c506
fix(engine): disambiguate dynamic ChannelEdit from legacy LiveDryRout…
masarray Nov 3, 2026
2f783cb
feat(engine): live CH11+ fader/PAN/MUTE/SOLO and native ChannelId tra…
masarray Nov 3, 2026
a679e5a
feat(console): bury retired GUI resources and attest native CH11 Cons…
masarray Nov 3, 2026
d2b00f8
test(gui): separate archived IO matrix regression from shipped Consol…
masarray Nov 3, 2026
755fd9f
test: retire only obsolete WebView asset packaging contracts
masarray Nov 3, 2026
da9e7e3
test(console): remove obsolete embedded GUI assumptions in native rel…
masarray Nov 3, 2026
41ecd7d
feat(console): create stereo ChannelIds and patch only verified physi…
masarray Nov 3, 2026
28eb0f5
fix(console): inline approved PAN knob SVG for offline native Windows…
masarray Nov 3, 2026
7808130
feat(engine): real CH11+ and Group post-fader PCM metering in native …
masarray Nov 3, 2026
f5c42ae
perf(console): replace quadratic stereo input enumeration with verifi…
masarray Nov 3, 2026
8e09656
fix(release): repair native Console PowerShell resource verifier parser
masarray Nov 3, 2026
2e18bf2
test(release): use parser-safe literal assertions for PowerShell hash…
masarray Nov 3, 2026
6cb6d0d
feat(engine): stage genuine VST3 insert ownership on dynamic ChannelIds
masarray Nov 3, 2026
6cb7544
feat(native): connect catalog-approved VST3 load, bypass and vendor e…
masarray Nov 3, 2026
628d1cf
feat(console): wire scanned native VST3 catalog and CH11 insert rack …
masarray Nov 3, 2026
f90a895
test(vst3): account for third real native ChannelId bus-layout negoti…
masarray Nov 3, 2026
5358274
fix(native-vst3): qualify dynamic ChannelEdit to repair MSVC C2039 co…
masarray Nov 3, 2026
4db1825
feat(native-wire): connect new Console OUT to actual ChannelId PCM ro…
masarray Nov 4, 2026
7ed695a
feat(wire-gui): draw accepted native cables and drag to route or disc…
masarray Nov 4, 2026
e79d2e3
test(native-wire): verify actual PCM Group serial route, feedback rol…
masarray Nov 4, 2026
f495714
fix(msvc): update native bridge CTest to five-argument real VST3 acti…
masarray Nov 4, 2026
96d2d30
fix(wire): canonical duplicate dry route rejection (#375)
masarray Nov 4, 2026
b6e992f
feat(wire): stable EdgeId and atomic native WIRE transaction on exist…
masarray Nov 4, 2026
59a02b2
feat(wire): atomically publish native WIRE batch through existing acc…
masarray Nov 4, 2026
b359d2c
feat(wire): project exact stable edge IDs from accepted native routing
masarray Nov 4, 2026
a307831
test(wire): native atomic MAIN detach, fan-out, 3-hop sample alignmen…
masarray Nov 4, 2026
de5c4ac
feat(wire): apply canonical atomic WIRE to installed JUCE ChannelId P…
masarray Nov 4, 2026
ca0fa07
feat(wire): route JUCE native intent into real ChannelId PCM publication
masarray Nov 4, 2026
5bc0807
feat(wire): strict native WebView WIRE batch decoding and epoch-fence…
masarray Nov 4, 2026
baeddf0
feat(wire): advertise only installed scoped native WIRE transaction
masarray Nov 4, 2026
6ee19f7
test(wire): native WebView batch ACK exact edge IDs and malformed int…
masarray Nov 4, 2026
d31f7c7
feat(wire): one-transaction default MAIN edge for new native channels
masarray Nov 4, 2026
7ec8c77
fix(wire): atomically create native input and MAIN edge in one accept…
masarray Nov 4, 2026
b8ebf19
test(wire): default MAIN edge created exactly once, saved disconnecte…
masarray Nov 4, 2026
af2823b
test(wire): expose exact native feedback rejection fault without weak…
masarray Nov 4, 2026
4eeac29
fix(wire): reject stale device before edits, preserve MAIN edge ID an…
masarray Nov 4, 2026
de347b3
feat(wire): publish verified internal routing while output armed with…
masarray Nov 4, 2026
e6a92d1
ENGINE B2: reconcile canonical native WIRE transactions (#379)
masarray Nov 4, 2026
d7a4ab7
feat(wire): v8 APPLY_WIRE_TRANSACTION and accepted native EdgeId grap…
masarray Nov 4, 2026
f56056a
fix(wire-v8): keep intent scope through ACK; guard exact focused source
masarray Nov 4, 2026
a9fd4d6
test(wire-v8): isolate accepted native revision fixture from legacy M…
masarray Nov 4, 2026
42c3cfd
ENGINE C1: native v8 WIRE intent/accepted EdgeId graph (#384)
masarray Nov 4, 2026
168b1a2
WIRE C2: verify v8 ACK changes installed ChannelId PCM graph and exac…
masarray Nov 4, 2026
066d7b0
ENGINE: convert real accepted ChannelId PCM channels, EdgeIds, contro…
masarray Nov 4, 2026
086300c
ENGINE E6: unify original CH1-10 and dynamic ChannelId realtime PCM c…
masarray Nov 4, 2026
59d1ef6
ENGINE E6: fail silent if any native mirror rejects after ChannelId c…
masarray Nov 4, 2026
21141b5
ENGINE: reconcile native ChannelId PCM producer onto approved main wi…
masarray Nov 5, 2026
e15aefe
ENGINE: rebase strict FX/callback contract tests onto unified native …
masarray Nov 5, 2026
7f5c431
ENGINE tests: retain isolated legacy G0 adapter fixture without enabl…
masarray Nov 5, 2026
74dec9e
ENGINE tests: retain strict legacy G0 fixture validation without rest…
masarray Nov 5, 2026
a866186
ENGINE: restore deterministic native v8 fixture required by Windows C…
masarray Nov 5, 2026
efe8f49
ENGINE: incorporate accepted M3E FAT main without changing PCM owner …
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
141 changes: 141 additions & 0 deletions engine/core/ConsolePuzzleV8Wire.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,141 @@
// SPDX-License-Identifier: AGPL-3.0-only
#pragma once
#include <cmath>
#include <cstdint>
#include <cstdio>
#include <string>
#include <vector>

// One native wire serializer shared by JUCE control-thread producer and
// deterministic S0 fixture generator. NO DSP or callback ownership here.
// Physical ports and PCM measurements MUST come from actual native status.
namespace armix::console {
struct PuzzleV8Pin final {
int port=-1,callback=-1;
std::string label;
bool hasRawPeak=false;
double rawPeak=0.0;
};
struct PuzzleV8Snapshot final {
std::string epoch="1",backend,captureDevice,playbackDevice;
std::string graphRevision="0",rosterRevision="0",legacyRoutingRevision="0";
int sampleRate=0,bufferFrames=0;
bool outputArmed=false,rawCapturePresent=false;
bool mainPcmPresent=false,monitorPcmPresent=false;
double rawCapturePeak=0.0;
bool legacyActive=false,legacyRouteAccepted=false;
std::vector<PuzzleV8Pin> inputs,outputs;
// Installed M4 callback does NOT own a ChannelId graph yet.
bool productionCallbackLive=false;
};
struct PuzzleV8Ack final {
std::string requestId,status="REJECTED",deviceEpoch="0";
std::string graphRevision="0",rosterRevision="0";
std::string errorCode="UNIVERSAL_CALLBACK_NOT_READY";
};
class PuzzleV8Wire final {
static std::string quote(const std::string& in) {
std::string out="\"";
static constexpr char hex[]="0123456789abcdef";
for(const unsigned char c:in) {
switch(c) {
case '"':out+="\\\"";break;
case '\\':out+="\\\\";break;
case '\n':out+="\\n";break;
case '\r':out+="\\r";break;
case '\t':out+="\\t";break;
default:
if(c<32) {out+="\\u00";out+=hex[c>>4];out+=hex[c&15];}
else out+=static_cast<char>(c);
}
}
return out+'"';
}
static const char* bit(bool b) noexcept{return b?"true":"false";}
static std::string number(double n) {
if(!std::isfinite(n)||n<0.)return "null";
char buffer[80]{};
std::snprintf(buffer,sizeof(buffer),"%.9g",n);
return buffer;
}
static std::string pins(const std::vector<PuzzleV8Pin>& list,const char* kind) {
std::string s="[";
for(const auto& p:list) {
if(p.port<0||p.port>255||p.callback<0)continue;
if(s.size()>1)s+=',';
s+="{\"id\":"+quote(std::string(kind)+":"+std::to_string(p.port))+
",\"port\":"+std::to_string(p.port)+",\"callback\":"+
std::to_string(p.callback)+",\"label\":"+
quote(p.label.empty()?std::string(kind)+" "+std::to_string(p.port+1):p.label)+
",\"active\":true";
if(p.hasRawPeak && std::isfinite(p.rawPeak) && p.rawPeak>=0.) {
s+=",\"rawPeak\":"+number(p.rawPeak)+
",\"rawPresent\":"+bit(p.rawPeak>0.0005);
}
s+='}';
}
return s+"]";
}
static std::string enabled(const std::vector<PuzzleV8Pin>& list) {
std::string s="[";
for(const auto& p:list){
if(p.port<0||p.port>255||p.callback<0)continue;
if(s.size()>1)s+=',';
s+=std::to_string(p.port);
}
return s+"]";
}
public:
static std::string snapshot(const PuzzleV8Snapshot& s) {
// Complete v8 mandatory wire even while callback is not universal.
// ChannelId and revisions are decimal strings; no JSON double.
return "{\"schemaVersion\":6,\"productionCallbackLive\":"+
std::string(bit(s.productionCallbackLive))+
",\"device\":{\"epoch\":"+quote(s.epoch)+
",\"backend\":"+quote(s.backend)+
",\"captureDevice\":"+quote(s.captureDevice)+
",\"playbackDevice\":"+quote(s.playbackDevice)+
",\"inputEndpoints\":"+pins(s.inputs,"in")+
",\"outputEndpoints\":"+pins(s.outputs,"out")+
",\"enabledInputs\":"+enabled(s.inputs)+
",\"enabledOutputs\":"+enabled(s.outputs)+
",\"sampleRate\":"+(s.sampleRate>0?std::to_string(s.sampleRate):"null")+
",\"bufferFrames\":"+(s.bufferFrames>0?std::to_string(s.bufferFrames):"null")+
",\"outputArmed\":"+bit(s.outputArmed)+
"},\"graph\":{\"revision\":"+quote(s.graphRevision)+
",\"rosterRevision\":"+quote(s.rosterRevision)+
",\"channels\":[],\"destinations\":[],\"capabilities\":{"
"\"callbackOwnsChannelIds\":false,\"fullVendorFxMigration\":false,"
"\"showAndOutputParity\":false,\"physicalCaptureMapped\":false,"
"\"dynamicChannels\":false,\"groups\":false,\"fxReturns\":false,"
"\"monitor\":false,\"sendsOnFaders\":false,\"supportedOps\":[]}},"
"\"telemetry\":{\"rawCapturePresent\":"+bit(s.rawCapturePresent)+
",\"rawCapturePeak\":"+number(s.rawCapturePeak)+
",\"mainPcmPresent\":"+bit(s.mainPcmPresent)+
",\"monitorPcmPresent\":"+bit(s.monitorPcmPresent)+
",\"channelMeterRmsPeak\":[]},\"legacyM4\":{\"active\":"+
bit(s.legacyActive)+",\"routeAccepted\":"+bit(s.legacyRouteAccepted)+
",\"routingRevision\":"+quote(s.legacyRoutingRevision)+"}}";
}
static std::string ack(const PuzzleV8Ack& a) {
return "{\"requestId\":"+quote(a.requestId)+
",\"status\":"+quote(a.status)+
",\"deviceEpoch\":"+quote(a.deviceEpoch)+
",\"graphRevision\":"+quote(a.graphRevision)+
",\"rosterRevision\":"+quote(a.rosterRevision)+
",\"errorCode\":"+quote(a.errorCode)+"}";
}
static std::string fixture(const PuzzleV8Snapshot& s,const PuzzleV8Ack& a) {
const auto state=snapshot(s);
const auto command="{\"requestId\":"+quote(a.requestId)+
",\"deviceEpoch\":"+quote(s.epoch)+
",\"baseGraphRevision\":"+quote(s.graphRevision)+
",\"baseRosterRevision\":"+quote(s.rosterRevision)+
",\"operation\":\"SET_SOURCE\",\"targetChannelId\":null,\"payload\":{}}";
return "{\"events\":[{\"event\":\"arMixConsoleSnapshot\",\"payload\":"+
state+"},{\"event\":\"arMixConsoleIntent\",\"payload\":"+command+
"},{\"event\":\"arMixConsoleAck\",\"payload\":"+ack(a)+
"},{\"event\":\"arMixConsoleSnapshot\",\"payload\":"+state+"}]}\n";
}
};
} // namespace armix::console
Loading
Loading