mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-10-31 22:25:33 -04:00
handle default volume initialization properly
This commit is contained in:
parent
f6ffd2dd5a
commit
63e234335f
1 changed files with 4 additions and 1 deletions
|
|
@ -179,8 +179,11 @@ int pa_sink_input_new(
|
|||
if (data->sink->flags & PA_SINK_FLAT_VOLUME) {
|
||||
data->volume = *pa_sink_get_volume(data->sink, FALSE);
|
||||
pa_cvolume_remap(&data->volume, &data->sink->channel_map, &data->channel_map);
|
||||
} else
|
||||
data->volume_is_absolute = TRUE;
|
||||
} else {
|
||||
pa_cvolume_reset(&data->volume, data->sample_spec.channels);
|
||||
data->volume_is_absolute = FALSE;
|
||||
}
|
||||
|
||||
data->save_volume = FALSE;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue