audio-endpoint: configure adapter for null sink with monitor.channel-volumes

This allows the channelVolumes and mute props to affect the output
of the null sink's monitor ports. This way we will be able to use
channelVolumes to track the configured volume of the endpoint
and the monitorVolumes to implement volume ducking.
This commit is contained in:
George Kiagiadakis 2021-04-19 11:08:17 +03:00
parent 44c96b6c49
commit bc1413e1cd

View file

@ -225,6 +225,7 @@ si_audio_endpoint_enable_active (WpSessionItem *si, WpTransition *transition)
PW_KEY_FACTORY_NAME, "support.null-audio-sink",
PW_KEY_NODE_DESCRIPTION, desc,
SPA_KEY_AUDIO_POSITION, "FL,FR",
"monitor.channel-volumes", "true",
NULL));
if (!self->node) {
wp_transition_return_error (transition,