mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-10-29 05:40:23 -04:00
sink-input: Don't restore volume for passthrough streams
This commit is contained in:
parent
a199bfb765
commit
cb3dcb14f8
1 changed files with 6 additions and 0 deletions
|
|
@ -319,6 +319,12 @@ int pa_sink_input_new(
|
|||
|
||||
pa_return_val_if_fail(pa_channel_map_compatible(&data->channel_map, &data->sample_spec), -PA_ERR_INVALID);
|
||||
|
||||
/* Don't restore (or save) stream volume for passthrough streams */
|
||||
if (!pa_format_info_is_pcm(data->format)) {
|
||||
data->volume_is_set = FALSE;
|
||||
data->volume_factor_is_set = FALSE;
|
||||
}
|
||||
|
||||
if (!data->volume_is_set) {
|
||||
pa_cvolume_reset(&data->volume, data->sample_spec.channels);
|
||||
data->volume_is_absolute = FALSE;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue