mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-04 13:29:59 -05:00
move flat volume logic into the core. while doing so add n_volume_steps field to sinks/sources
This commit is contained in:
parent
4bfa5d7d13
commit
d5f46e824e
32 changed files with 562 additions and 361 deletions
|
|
@ -443,7 +443,7 @@ static pa_hook_result_t sink_input_fixate_hook_callback(pa_core *c, pa_sink_inpu
|
|||
|
||||
if (r->volume_is_set && data->sample_spec.channels == r->volume.channels) {
|
||||
pa_log_info("Restoring volume for <%s>", r->name);
|
||||
pa_sink_input_new_data_set_volume(data, &r->volume);
|
||||
pa_sink_input_new_data_set_virtual_volume(data, &r->volume);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue