Skip to content

webrtc: Add Sound volume and mute controls support#2213

Draft
thjnk wants to merge 1 commit intogoogle:mainfrom
thjnk:main
Draft

webrtc: Add Sound volume and mute controls support#2213
thjnk wants to merge 1 commit intogoogle:mainfrom
thjnk:main

Conversation

@thjnk
Copy link
Contributor

@thjnk thjnk commented Mar 3, 2026

This change implements volume and mute controls for the WebRTC audio backend in Cuttlefish. These controls allow the guest to dynamically adjust playback and capture audio levels via Virtio Sound control messages.

  • AudioMixer: Apply playback volume scaling during audio stream resampling by modifying the channel mix map.
  • Implement read/write logic for Virtio audio volume/mute control commands.
  • Guest Config: Allow enabling of Virtio Sound controls per stream.

This change implements volume and mute controls for the WebRTC audio
backend in Cuttlefish. These controls allow the guest to dynamically
adjust playback and capture audio levels via Virtio Sound control messages.

- AudioMixer: Apply playback volume scaling during audio stream
  resampling by modifying the channel mix map.
- Implement read/write logic for Virtio audio volume/mute control commands.
- Guest Config: Allow enabling of Virtio Sound controls per stream.
@jemoreira jemoreira self-requested a review March 3, 2026 19:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant