Add bounded GStreamer playback components to the voice host (#43244)

## What changed

- Add a `GstAudioSink` subclass backed by a bounded mono `F32LE` playback writer, with partial writes, cancellation on speaker epoch changes, and delay accounting for queued samples and pending device output.
- Recreate the CPAL output stream and discard buffered audio when speaker controls change the epoch, preventing stale audio from surviving suppression.
- Add GStreamer dependencies, adjust Windows Bazel native-tool selection, and allow the helper handshake time to load startup-linked libraries.
- Separate installed-client tests from protocol lifecycle tests and supply native startup libraries in test packages.

## Testing

Add unit coverage for partial writes, sample accounting, suppression cancellation, stale writers, device delay, invalid samples, and stalled consumption.

GitOrigin-RevId: c48c48d2fee00659cf6f8a4039a6745385cb77cd
This commit is contained in:
Benjamin Carlsson authored and copyberry committed 2026-09-06 16:02:27 +00:00
1 parent ac192cd793
commit 9daf7d22ca
14 files changed
+1132 -342

No files matched your search

+1 -2
View File
@@ -235,8 +235,7 @@ fn tiny_output_callbacks_pack_references_without_delaying_rendering() {
for _ in 0..8 {
assert!(
buffers
.playback
.push(Frame {
.push_playback(Frame {
samples: [0.5; BLOCK],
len: BLOCK,
at: start,