BlueGit

ict rusty-teams

Files

rusty-teams / vendor / webrtc-sys / PATCH.md

PATCH.md

PATCH.md 1.5 KiB Download Raw

webrtc-sys 0.3.48 patches

Upstream: crates.io webrtc-sys 0.3.48 (livekit/rust-sdks). Wired in via [patch.crates-io] in the root Cargo.toml. crates/calling pins webrtc-sys = "=0.3.48" and libwebrtc = "=0.3.51" so an update cannot drop the patch silently. 0.3.49 still has both bugs.

Changed files

FileChangeWhy
src/adm_proxy.cpp, include/livekit/adm_proxy.hInit() re-inits terminated sub ADMs; EnsurePlatformAdmCreated() re-inits a terminated platform ADM; InitPlatformAdm() replays transport, devices, observer, stereo; Terminate() stops synthetic playout and clears playing_ / recording_WebRtcVoiceEngine::Terminate() terminates the ADM after every call, Init() was a no-op: from the second call on 0 devices, no mic, no sound
src/adm_proxy.cppBuiltInAECIsAvailable() returns false on Windowsthe voice capture DMO fails StartRecording ("Playout must be started before recording") when no remote audio plays yet - mic silent for the whole call (seen in the app log 2026-10-13)
src/adm_proxy.cpp, include/livekit/adm_proxy.hSetPlayoutDevice / SetRecordingDevice(WindowsDeviceType) turn kDefaultCommunicationDevice into kDefaultDeviceWebRtcVoiceEngine::Init selects the communications default at every call start; the app's "Default device" means the Windows default device (seen 2026-10-14: speaker came up on the communications default, user picked the default device by hand every call)
Source
1# webrtc-sys 0.3.48 patches
2
3Upstream: crates.io `webrtc-sys 0.3.48` (livekit/rust-sdks). Wired in via `[patch.crates-io]` in the root `Cargo.toml`. `crates/calling` pins `webrtc-sys = "=0.3.48"` and `libwebrtc = "=0.3.51"` so an update cannot drop the patch silently. 0.3.49 still has both bugs.
4
5## Changed files
6
7| File | Change | Why |
8|---|---|---|
9| `src/adm_proxy.cpp`, `include/livekit/adm_proxy.h` | `Init()` re-inits terminated sub ADMs; `EnsurePlatformAdmCreated()` re-inits a terminated platform ADM; `InitPlatformAdm()` replays transport, devices, observer, stereo; `Terminate()` stops synthetic playout and clears `playing_` / `recording_` | `WebRtcVoiceEngine::Terminate()` terminates the ADM after every call, `Init()` was a no-op: from the second call on 0 devices, no mic, no sound |
10| `src/adm_proxy.cpp` | `BuiltInAECIsAvailable()` returns false on Windows | the voice capture DMO fails `StartRecording` ("Playout must be started before recording") when no remote audio plays yet - mic silent for the whole call (seen in the app log 2026-10-13) |
11| `src/adm_proxy.cpp`, `include/livekit/adm_proxy.h` | `SetPlayoutDevice` / `SetRecordingDevice(WindowsDeviceType)` turn `kDefaultCommunicationDevice` into `kDefaultDevice` | `WebRtcVoiceEngine::Init` selects the communications default at every call start; the app's "Default device" means the Windows default device (seen 2026-10-14: speaker came up on the communications default, user picked the default device by hand every call) |