When the guest VM stops audio playback/capture, the PCM worker was continuously writing silence to PulseAudio every ~10ms, keeping the PA mainloop and audio hardware clock active. This adds PulseAudio stream corking: on pause the stream is corked so the PA server stops requesting data, and on resume it is uncorked. This eliminates idle CPU wakeups and improves battery life. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| src | ||
| Cargo.toml | ||
| README.md | ||
Audio Server and Stream interfaces
The audio_streams crate provides a basic interface for playing audio. This will be used to enable
playback to various audio subsystems such as Alsa and cras. To start, an empty playback example
NoopStreamSource is provided.