diff --git a/.gitignore b/.gitignore index 5e5675e..ff8a03b 100644 --- a/.gitignore +++ b/.gitignore @@ -4,6 +4,7 @@ logs/ *.log *.tmp calibration/runs/ +artifacts/drivers/ tools/drivers/ tools/obs-spout2-plugin/ tools/src/ diff --git a/docs/audio-field.md b/docs/audio-field.md index d976f9b..6ee9a14 100644 --- a/docs/audio-field.md +++ b/docs/audio-field.md @@ -84,10 +84,14 @@ watermark gain is intentionally low (`watermarkGain`, or The current diagnostic witness is `native/probes/wasapi_audio_cadence`, which emits timestamped WASAPI `audio-block` metadata into `Mimir.Runtime` through the -frame-event adapter. It has proven Focusrite mic, Kiyo Pro mic, Kiyo mic, both -USB Camera / PS3 Eye mics, and Scarlett speaker loopback in rolling buffers when -loopback audio is actively playing. One PS3 Eye mic previously enumerated but -produced zero WASAPI packets until that Eye was unplugged and replugged. +frame-event adapter. It can request and verify specific shared or exclusive +formats for device diagnosis, but it is not the Focusrite hot path. Scarlett +capture belongs on ASIO so the runtime can use the interface clock and the +24-bit/192 kHz modes instead of the Windows shared engine. The probe has proven +Focusrite mic, Kiyo Pro mic, Kiyo mic, both USB Camera / PS3 Eye mics, and +Scarlett speaker loopback in rolling buffers when loopback audio is actively +playing. One PS3 Eye mic previously enumerated but produced zero WASAPI packets +until that Eye was unplugged and replugged. The full probe runtime config now enables sample-bearing blocks for every local audio source. `MimirChirpletTimeline` owns the emitted calibration stream and @@ -202,4 +206,6 @@ hybrid watermark belongs to the chirp-bin machine. Next, replace the diagnostic bridge with native audio capture workers that append typed blocks into `Mimir.Runtime`, then expose buffer depth, clock state, -delay estimates, and stem routing in Aquarium UI. +delay estimates, and stem routing in Aquarium UI. The analyzer accepts Float32, +Int16, Int24, and Int32 PCM windows so the direct driver path can preserve real +interface formats before Faust/native DSP owns the hot resampling and alignment. diff --git a/docs/implementation-plan.md b/docs/implementation-plan.md index c04c649..2e2fbbb 100644 --- a/docs/implementation-plan.md +++ b/docs/implementation-plan.md @@ -43,7 +43,8 @@ a named invariant that the native runtime cannot protect yet. decoder recovers sub-frame anchors without hardware. - `native/probes/wasapi_audio_cadence` captures WASAPI mic or render-loopback block metadata and emits `audio-block` JSON events for the diagnostic runtime - adapter. + adapter. It can probe requested shared/exclusive formats so driver state is + explicit, but Scarlett production capture belongs on ASIO. - `MimirChirpletTimeline` owns the structured birdsong-like calibration stream, PCM segment rendering, matched timing trace, and per-band response kernels. The default timeline is an order-3 de Bruijn symbol sequence over 32 @@ -62,7 +63,8 @@ a named invariant that the native runtime cannot protect yet. sample-bearing audio blocks are resampled into the Scarlett loopback timeline. The analyzer derives delay only from matched decoded triplet timeline anchors. A source without at least three matched anchors has no timing report for that - window. + window. It accepts Float32, Int16, Int24, and Int32 PCM windows so ASIO/native + capture can feed true interface formats without a pre-conversion shim. - `MimirAudioSynchronizationStateTracker` owns the first smoothed per-source sync state: latest fractional delay, smoothed delay, confidence, per-band response evidence, and delay-slope/SRO estimate in ppm. @@ -123,8 +125,10 @@ a named invariant that the native runtime cannot protect yet. other cameras. 2. Feed those drivers into `MimirVideoCaptureDriverSource` and prove sustained frame cadence in the rolling buffers. -3. Replace the WASAPI frame-event diagnostic bridge with native audio capture - workers for local mic, loopback, and network audio feeds. +3. Install/verify the Focusrite ASIO driver, then replace the WASAPI frame-event + diagnostic bridge with native audio capture workers for local mic, loopback, + and network audio feeds. WASAPI remains a diagnostic witness, not the + Scarlett hot path. 4. Add the synchronization actuator: drive a variable-rate resampler and fractional delay line per non-reference stream from the smoothed `MimirAudioSynchronizationState`. First, prove the constrained chirplet diff --git a/native/probes/wasapi_audio_cadence/wasapi_audio_cadence.cpp b/native/probes/wasapi_audio_cadence/wasapi_audio_cadence.cpp index be6f464..b967e4d 100644 --- a/native/probes/wasapi_audio_cadence/wasapi_audio_cadence.cpp +++ b/native/probes/wasapi_audio_cadence/wasapi_audio_cadence.cpp @@ -7,6 +7,8 @@ #include #include +#include +#include #include #include #include @@ -51,6 +53,18 @@ struct PropVariant ~PropVariant() { PropVariantClear(&value); } }; +struct WaveFormatHolder +{ + WAVEFORMATEX* value = nullptr; + ~WaveFormatHolder() + { + if (value) + { + CoTaskMemFree(value); + } + } +}; + long long nowNs() { return std::chrono::duration_cast( @@ -149,6 +163,80 @@ const char* option(int argc, char** argv, const char* name, const char* fallback return fallback; } +int intOption(int argc, char** argv, const char* name, int fallback) +{ + const char* raw = option(argc, argv, name, nullptr); + return raw ? std::atoi(raw) : fallback; +} + +std::string lower(std::string value) +{ + std::transform(value.begin(), value.end(), value.begin(), [](unsigned char ch) { + return static_cast(std::tolower(ch)); + }); + return value; +} + +const char* shareModeName(AUDCLNT_SHAREMODE mode) +{ + return mode == AUDCLNT_SHAREMODE_EXCLUSIVE ? "exclusive" : "shared"; +} + +std::string describeFormat(const WAVEFORMATEX* format) +{ + char buffer[256]{}; + std::snprintf( + buffer, + sizeof(buffer), + "%luHz %uch %ubit valid=%u block=%u %s", + static_cast(format->nSamplesPerSec), + static_cast(format->nChannels), + static_cast(format->wBitsPerSample), + format->wFormatTag == WAVE_FORMAT_EXTENSIBLE + ? static_cast(reinterpret_cast(format)->Samples.wValidBitsPerSample) + : static_cast(format->wBitsPerSample), + static_cast(format->nBlockAlign), + sampleFormat(format).c_str()); + return buffer; +} + +WAVEFORMATEX* buildRequestedFormat( + const WAVEFORMATEX* mixFormat, + int sampleRate, + int bitsPerSample, + const char* requestedFormat, + int requestedChannels) +{ + const WORD channels = static_cast(requestedChannels > 0 ? requestedChannels : mixFormat->nChannels); + if (channels == 0 || sampleRate <= 0 || bitsPerSample <= 0) + { + return nullptr; + } + + const auto normalizedFormat = lower(requestedFormat ? requestedFormat : "float"); + const bool floatFormat = normalizedFormat == "float" || normalizedFormat == "float32"; + const WORD containerBits = static_cast(floatFormat ? 32 : bitsPerSample == 24 ? 24 : bitsPerSample); + auto* format = static_cast(CoTaskMemAlloc(sizeof(WAVEFORMATEXTENSIBLE))); + if (!format) + { + return nullptr; + } + + std::memset(format, 0, sizeof(WAVEFORMATEXTENSIBLE)); + format->Format.wFormatTag = WAVE_FORMAT_EXTENSIBLE; + format->Format.nChannels = channels; + format->Format.nSamplesPerSec = static_cast(sampleRate); + format->Format.wBitsPerSample = containerBits; + format->Format.nBlockAlign = static_cast(channels * ((containerBits + 7) / 8)); + format->Format.nAvgBytesPerSec = format->Format.nSamplesPerSec * format->Format.nBlockAlign; + format->Format.cbSize = sizeof(WAVEFORMATEXTENSIBLE) - sizeof(WAVEFORMATEX); + format->Samples.wValidBitsPerSample = static_cast(bitsPerSample); + format->dwChannelMask = channels == 1 ? SPEAKER_FRONT_CENTER : + channels == 2 ? (SPEAKER_FRONT_LEFT | SPEAKER_FRONT_RIGHT) : 0; + format->SubFormat = floatFormat ? KSDATAFORMAT_SUBTYPE_IEEE_FLOAT : KSDATAFORMAT_SUBTYPE_PCM; + return &format->Format; +} + std::string base64(const BYTE* data, DWORD byteLength) { DWORD chars = 0; @@ -268,12 +356,25 @@ int main(int argc, char** argv) } const bool loopback = hasArg(argc, argv, "--loopback"); + const bool exclusive = hasArg(argc, argv, "--exclusive"); + const bool requireFormat = hasArg(argc, argv, "--require-format"); const char* endpointId = option(argc, argv, "--endpoint", "default"); const char* sourceId = option(argc, argv, "--source-id", loopback ? "host-loopback" : "host-mic"); const double seconds = std::atof(option(argc, argv, "--seconds", "0")); + const int requestedSampleRate = intOption(argc, argv, "--sample-rate", 0); + const int requestedBits = intOption(argc, argv, "--bits", 0); + const int requestedChannels = intOption(argc, argv, "--channels", 0); + const char* requestedFormat = option(argc, argv, "--format", "float"); const bool emitJsonBlocks = hasArg(argc, argv, "--emit-json-blocks"); const bool includeSamples = hasArg(argc, argv, "--include-samples"); const EDataFlow flow = loopback ? eRender : eCapture; + const AUDCLNT_SHAREMODE shareMode = exclusive && !loopback + ? AUDCLNT_SHAREMODE_EXCLUSIVE + : AUDCLNT_SHAREMODE_SHARED; + if (exclusive && loopback) + { + std::fprintf(stderr, "WASAPI loopback uses the shared render engine; ignoring --exclusive.\n"); + } ComPtr device; device.value = openEndpoint(enumerator.value, flow, endpointId); @@ -303,26 +404,92 @@ int main(int argc, char** argv) return 5; } - WAVEFORMATEX* rawFormat = nullptr; - hr = audioClient->GetMixFormat(&rawFormat); - if (FAILED(hr) || !rawFormat) + WaveFormatHolder mixFormat; + hr = audioClient->GetMixFormat(&mixFormat.value); + if (FAILED(hr) || !mixFormat.value) { std::fprintf(stderr, "GetMixFormat failed: 0x%08lx\n", static_cast(hr)); return 6; } + WaveFormatHolder requestedHolder; + WaveFormatHolder closestHolder; + WAVEFORMATEX* selectedFormat = mixFormat.value; + const bool hasRequestedFormat = requestedSampleRate > 0 || requestedBits > 0 || requestedChannels > 0; + if (hasRequestedFormat) + { + requestedHolder.value = buildRequestedFormat( + mixFormat.value, + requestedSampleRate > 0 ? requestedSampleRate : static_cast(mixFormat.value->nSamplesPerSec), + requestedBits > 0 ? requestedBits : static_cast(mixFormat.value->wBitsPerSample), + requestedFormat, + requestedChannels); + if (!requestedHolder.value) + { + std::fprintf(stderr, "Could not build requested WASAPI format.\n"); + return 7; + } + + WAVEFORMATEX* closest = nullptr; + hr = audioClient->IsFormatSupported(shareMode, requestedHolder.value, shareMode == AUDCLNT_SHAREMODE_SHARED ? &closest : nullptr); + if (hr == S_OK) + { + selectedFormat = requestedHolder.value; + } + else if (hr == S_FALSE && closest) + { + closestHolder.value = closest; + if (requireFormat) + { + std::fprintf( + stderr, + "Requested WASAPI format unsupported in %s mode: requested=%s closest=%s\n", + shareModeName(shareMode), + describeFormat(requestedHolder.value).c_str(), + describeFormat(closestHolder.value).c_str()); + return 7; + } + + selectedFormat = closestHolder.value; + } + else + { + if (closest) + { + CoTaskMemFree(closest); + } + if (requireFormat) + { + std::fprintf( + stderr, + "Requested WASAPI format unsupported in %s mode: requested=%s hr=0x%08lx\n", + shareModeName(shareMode), + describeFormat(requestedHolder.value).c_str(), + static_cast(hr)); + return 7; + } + } + } + + std::fprintf( + stderr, + "wasapi format: source=%s mode=%s mix=%s selected=%s\n", + sourceId, + shareModeName(shareMode), + describeFormat(mixFormat.value).c_str(), + describeFormat(selectedFormat).c_str()); + const REFERENCE_TIME requestedDuration = 1000000; // 100 ms hr = audioClient->Initialize( - AUDCLNT_SHAREMODE_SHARED, + shareMode, loopback ? AUDCLNT_STREAMFLAGS_LOOPBACK : 0, requestedDuration, - 0, - rawFormat, + shareMode == AUDCLNT_SHAREMODE_EXCLUSIVE ? requestedDuration : 0, + selectedFormat, nullptr); if (FAILED(hr)) { std::fprintf(stderr, "IAudioClient Initialize failed: 0x%08lx\n", static_cast(hr)); - CoTaskMemFree(rawFormat); return 7; } @@ -331,7 +498,6 @@ int main(int argc, char** argv) if (FAILED(hr) || !captureClient) { std::fprintf(stderr, "IAudioCaptureClient failed: 0x%08lx\n", static_cast(hr)); - CoTaskMemFree(rawFormat); return 8; } @@ -341,7 +507,7 @@ int main(int argc, char** argv) const long long start = nowNs(); const long long deadline = seconds > 0.0 ? start + static_cast(seconds * 1000000000.0) : 0; - const std::string format = sampleFormat(rawFormat); + const std::string format = sampleFormat(selectedFormat); unsigned long long sequence = 0; unsigned long long totalFrames = 0; @@ -359,11 +525,10 @@ int main(int argc, char** argv) { std::fprintf(stderr, "GetBuffer failed: 0x%08lx\n", static_cast(hr)); audioClient->Stop(); - CoTaskMemFree(rawFormat); return 9; } - const int byteLength = static_cast(frames * rawFormat->nBlockAlign); + const int byteLength = static_cast(frames * selectedFormat->nBlockAlign); totalFrames += frames; ++sequence; if (emitJsonBlocks) @@ -382,8 +547,8 @@ int main(int argc, char** argv) sourceId, nowNs(), sequence, - static_cast(rawFormat->nSamplesPerSec), - static_cast(rawFormat->nChannels), + static_cast(selectedFormat->nSamplesPerSec), + static_cast(selectedFormat->nChannels), format.c_str(), static_cast(frames), byteLength); @@ -411,9 +576,8 @@ int main(int argc, char** argv) sequence, totalFrames, elapsed, - static_cast(rawFormat->nSamplesPerSec), - static_cast(rawFormat->nChannels), + static_cast(selectedFormat->nSamplesPerSec), + static_cast(selectedFormat->nChannels), format.c_str()); - CoTaskMemFree(rawFormat); return 0; } diff --git a/notes/current-system-map.md b/notes/current-system-map.md index 7c21189..f98324d 100644 --- a/notes/current-system-map.md +++ b/notes/current-system-map.md @@ -89,7 +89,8 @@ not become the synchronized program authority. ## Audio Field The six-microphone path is separate from the bridge. Scarlett speaker loopback -is the current timing authority when calibration chirplets are playing. +is the current timing authority when calibration chirplets are playing, but +Scarlett production capture belongs on ASIO rather than WASAPI shared mode. `MimirChirpletTimeline` owns the birdsong-like timeline fingerprint: an order-3 de Bruijn sequence over 32 time/frequency constellation symbols. Start band, glide shape, duration, and following inter-chirp gap all carry code. Any three @@ -131,6 +132,16 @@ next proof is stable canonical anchors through real mic streams. Camera mics are spatial/context witnesses; Focusrite devices are dialogue anchors. Fractional delay and the hot resampler belong in Faust/native DSP. +The WASAPI cadence probe is now a format/state diagnostic: it can request +shared or exclusive sample rates, bit depths, channel counts, and float/PCM +formats, then report the selected or closest format. Current local Scarlett +state exposes only generic Windows audio behavior: shared Focusrite capture is +48 kHz Float32, shared Scarlett loopback is 44.1 kHz Float32, no ASIO driver is +registered, and strict WASAPI exclusive 24-bit/192 kHz requests are rejected +until the Focusrite driver stack is installed. The runtime analyzer accepts +Float32, Int16, Int24, and Int32 PCM windows so ASIO/native capture can preserve +the interface format. + ## Visual Fusion Visual fusion belongs in Aquarium over current reservoir claims. Native capture diff --git a/notes/fresh-workspace-handoff.md b/notes/fresh-workspace-handoff.md index 6500277..23c0fec 100644 --- a/notes/fresh-workspace-handoff.md +++ b/notes/fresh-workspace-handoff.md @@ -97,11 +97,17 @@ Get-Content .\state\evidence.jsonl -Tail 8 enumeration/runtime-fragile: one run saw both mic buffers empty while both cameras were live, then a replug made both PS3 Eye mic buffers emit 480-frame WASAPI blocks again. +- Scarlett ASIO is the next audio cut. Current local driver state has no ASIO + registry entries; shared WASAPI exposes Focusrite capture at 48 kHz Float32 + and Scarlett loopback at 44.1 kHz Float32, and strict WASAPI exclusive + 24-bit/192 kHz requests are rejected. The official Focusrite Control 3.27.0 + installer was downloaded to `artifacts/drivers/` and is ignored; install and + verify the driver before building the Scarlett hot path. ## Immediate Re-entry Instruction -Prove the constrained chirplet-transform decoder through real loopback and mic -paths, then turn decoded clock fits into the SRO/fractional-delay actuator. Keep -loopback as timing authority. Do not call synchronization analysis from -UI/telemetry readouts. Do not restore deleted script infrastructure because a -stale doc once missed it. +Install/verify the Focusrite ASIO driver, then prove the constrained +chirplet-transform decoder through real loopback and mic paths and turn decoded +clock fits into the SRO/fractional-delay actuator. Keep loopback as timing +authority. Do not call synchronization analysis from UI/telemetry readouts. Do +not restore deleted script infrastructure because a stale doc once missed it. diff --git a/src/Mimir.Runtime/Synchronization/MimirAudioSynchronizationAnalyzer.cs b/src/Mimir.Runtime/Synchronization/MimirAudioSynchronizationAnalyzer.cs index 5eee296..7f3d8e6 100644 --- a/src/Mimir.Runtime/Synchronization/MimirAudioSynchronizationAnalyzer.cs +++ b/src/Mimir.Runtime/Synchronization/MimirAudioSynchronizationAnalyzer.cs @@ -38,8 +38,7 @@ public sealed class MimirAudioSynchronizationAnalyzer var referenceSamples = ExtractMonoWindow(reference, out var referenceBlock); if (referenceSamples.Length == 0 || - referenceBlock == null || - referenceBlock.SampleFormat != MimirAudioSampleFormat.Float32) + referenceBlock == null) { return []; } @@ -77,11 +76,6 @@ public sealed class MimirAudioSynchronizationAnalyzer continue; } - if (candidateBlock.SampleFormat != MimirAudioSampleFormat.Float32) - { - continue; - } - candidateSamples = ResampleToRate(candidateSamples, candidateBlock.SampleRate, activeReferenceBlock.SampleRate); var compared = Math.Min(alignedReferenceSamples.Length, candidateSamples.Length); @@ -317,7 +311,7 @@ public sealed class MimirAudioSynchronizationAnalyzer long endNs = long.MaxValue) { latestBlock = buffer.Latest?.AudioBlock; - if (latestBlock == null || latestBlock.SampleFormat != MimirAudioSampleFormat.Float32) + if (latestBlock == null || !IsSupportedPcmFormat(latestBlock.SampleFormat)) { return []; } @@ -328,12 +322,12 @@ public sealed class MimirAudioSynchronizationAnalyzer .Reverse()) { var block = sample.AudioBlock!; - if (block.SampleFormat != MimirAudioSampleFormat.Float32 || block.Channels <= 0) + if (!IsSupportedPcmFormat(block.SampleFormat) || block.Channels <= 0) { continue; } - var mono = ExtractFirstChannel(sample.Data.Span, block.Channels); + var mono = ExtractFirstChannel(sample.Data.Span, block.Channels, block.SampleFormat); for (var index = mono.Length - 1; index >= 0 && samples.Count < MaxWindowSamples; index--) { samples.Add(mono[index]); @@ -349,21 +343,57 @@ public sealed class MimirAudioSynchronizationAnalyzer return samples.ToArray(); } - private static float[] ExtractFirstChannel(ReadOnlySpan data, int channels) + private static bool IsSupportedPcmFormat(MimirAudioSampleFormat sampleFormat) => + sampleFormat is MimirAudioSampleFormat.Float32 or + MimirAudioSampleFormat.Int16 or + MimirAudioSampleFormat.Int24 or + MimirAudioSampleFormat.Int32; + + private static float[] ExtractFirstChannel( + ReadOnlySpan data, + int channels, + MimirAudioSampleFormat sampleFormat) { - const int bytesPerSample = sizeof(float); + var bytesPerSample = sampleFormat switch + { + MimirAudioSampleFormat.Float32 => sizeof(float), + MimirAudioSampleFormat.Int16 => sizeof(short), + MimirAudioSampleFormat.Int24 => 3, + MimirAudioSampleFormat.Int32 => sizeof(int), + _ => 0, + }; + if (bytesPerSample <= 0) + { + return []; + } + var frameCount = data.Length / (bytesPerSample * channels); var samples = new float[frameCount]; for (var frame = 0; frame < frameCount; frame++) { var offset = frame * channels * bytesPerSample; - var bits = BinaryPrimitives.ReadInt32LittleEndian(data.Slice(offset, bytesPerSample)); - samples[frame] = BitConverter.Int32BitsToSingle(bits); + samples[frame] = sampleFormat switch + { + MimirAudioSampleFormat.Float32 => BitConverter.Int32BitsToSingle( + BinaryPrimitives.ReadInt32LittleEndian(data.Slice(offset, sizeof(float)))), + MimirAudioSampleFormat.Int16 => BinaryPrimitives.ReadInt16LittleEndian( + data.Slice(offset, sizeof(short))) / 32768.0f, + MimirAudioSampleFormat.Int24 => ReadInt24LittleEndian(data.Slice(offset, 3)) / 8388608.0f, + MimirAudioSampleFormat.Int32 => BinaryPrimitives.ReadInt32LittleEndian( + data.Slice(offset, sizeof(int))) / 2147483648.0f, + _ => 0.0f, + }; } return samples; } + private static int ReadInt24LittleEndian(ReadOnlySpan data) + { + var value = data[0] | (data[1] << 8) | (data[2] << 16); + return (value & 0x00800000) != 0 ? value | unchecked((int)0xff000000) : value; + } + private static float[] ResampleToRate(float[] samples, int sourceRate, int targetRate) { if (samples.Length == 0 || sourceRate == targetRate) diff --git a/state/evidence.jsonl b/state/evidence.jsonl index b959665..dc4ff92 100644 --- a/state/evidence.jsonl +++ b/state/evidence.jsonl @@ -60,3 +60,4 @@ {"ts": "2026-05-22T19:58:44+01:00", "type": "implementation", "status": "ok", "note": "Fixed hybrid watermark being obtrusive. Root causes: Aquarium applied EnqueuePcm16Base64 gain twice, Mimir treated immediate audio chunks like scheduled future segments and caught up missed hybrid segments as audible backlog, and probe configs stopped WASAPI capture after 30s. Aquarium now applies queued PCM gain once; Mimir hybrid uses separate low watermarkGain default 0.035, emits one 0.5s chirp-bin burst every 2s only while passive confidence is weak, and skips missed segments instead of catch-up dumping. Probe audio durations are now 3600s. Short hybrid app run showed batches at firstSegment 0,4,8,12 with gain 0.035."} {"ts": "2026-05-22T20:32:10+01:00", "type": "verification", "status": "ok", "note": "Hybrid chirp-bin analyzer no longer inherits passive 2s gate: short-window self-test feeds rolling buffers with 1s chirp-bin loopback/candidate audio and recovers a 317-sample delay exactly with 5 matched events and 0.854 confidence. Live app smoke after the fix did not prove acoustic decode because Scarlett loopback stalled after one block, so that run is loopback freshness evidence rather than duration evidence."} {"ts": "2026-05-23T10:26:32+01:00", "type": "verification", "status": "ok", "note": "Chirp-bin hybrid analyzer now proves microsecond-scale fractional timing in memory: --hybrid-sync-self-test uses a 317.375-sample delayed rolling-buffer candidate and recovers 317.392716 samples, 0.017716 samples / 0.369 us error, with 5 matched chirp-bin events and 0.851 confidence. Reports and sync states now expose delayUs alongside fractional samples."} +{"ts": "2026-05-23T10:39:21+01:00", "type": "verification", "status": "partial", "note": "Focusrite Scarlett Solo currently exposes only generic Windows audio behavior before driver install: no ASIO registry entries, shared WASAPI capture 48000Hz Float32, shared Scarlett loopback 44100Hz Float32, and strict WASAPI exclusive 24-bit/192kHz requests are rejected with unsupported format. Official Focusrite Control 3.27.0 installer was downloaded from Focusrite to artifacts/drivers/focusrite_control_v3_27_0.exe with SHA256 07F1B031ABAB6F0F641B2BD6219AC264B37932332BE5B3997BADC00AEC113AD9; install/verify ASIO before cutting the Scarlett hot path."} diff --git a/state/map.yaml b/state/map.yaml index b98fe88..b098fba 100644 --- a/state/map.yaml +++ b/state/map.yaml @@ -130,6 +130,8 @@ active_subgoals: - Implement the first concrete Leap direct capture driver and measure cadence. - Add remaining local camera drivers through `IMimirVideoCaptureDriver`. - Add native audio capture workers for mic, loopback, and network audio feeds. + - Install and verify the Focusrite ASIO driver before cutting the Scarlett + hot audio path; WASAPI remains a diagnostic witness. - Bind Aquarium UI to stream health, buffer depth, source timestamps, settings, and output management. - Keep PowerShell/FFmpeg/SRT as bridge utilities until direct program output @@ -226,5 +228,9 @@ current_status: for Scarlett loopback, Focusrite mic, Kiyo mic, and Kiyo Pro mic when calibration chirplets are playing. Treat PS3 Eye audio as enumeration/runtime-fragile, not unavailable. Keep the Focusrite away from - the Leap USB neighborhood and treat Kiyo Pro as a ~25 fps source until its - SuperSpeed negotiation is fixed. + the Leap USB neighborhood. Current Scarlett audio is still generic Windows + USB audio: no ASIO driver is registered, shared WASAPI exposes Focusrite + capture at 48 kHz Float32 and Scarlett loopback at 44.1 kHz Float32, and + strict WASAPI exclusive 24-bit/192 kHz requests are rejected until the + Focusrite driver stack is installed. Treat Kiyo Pro as a ~25 fps source + until its SuperSpeed negotiation is fixed.