mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-10-29 05:40:23 -04:00
protocol-native: declare that user configured volumes are always absolute
This commit is contained in:
parent
78984e4395
commit
27c6a80ccb
1 changed files with 3 additions and 1 deletions
|
|
@ -1047,8 +1047,10 @@ static playback_stream* playback_stream_new(
|
||||||
data.sink = sink;
|
data.sink = sink;
|
||||||
pa_sink_input_new_data_set_sample_spec(&data, ss);
|
pa_sink_input_new_data_set_sample_spec(&data, ss);
|
||||||
pa_sink_input_new_data_set_channel_map(&data, map);
|
pa_sink_input_new_data_set_channel_map(&data, map);
|
||||||
if (volume)
|
if (volume) {
|
||||||
pa_sink_input_new_data_set_volume(&data, volume);
|
pa_sink_input_new_data_set_volume(&data, volume);
|
||||||
|
data.volume_is_absolute = TRUE;
|
||||||
|
}
|
||||||
if (muted_set)
|
if (muted_set)
|
||||||
pa_sink_input_new_data_set_muted(&data, muted);
|
pa_sink_input_new_data_set_muted(&data, muted);
|
||||||
data.sync_base = ssync ? ssync->sink_input : NULL;
|
data.sync_base = ssync ? ssync->sink_input : NULL;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue