mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-05 13:29:57 -05:00
Revert "Add volume ramping feature - sink modification"
This reverts commit 897ef86b7f.
Conflicts:
src/pulsecore/sink.c
(part of a patch series removing all ramping code)
This commit is contained in:
parent
4cf12b91a4
commit
241dd91583
1 changed files with 1 additions and 6 deletions
|
|
@ -2056,15 +2056,10 @@ static void sync_input_volumes_within_thread(pa_sink *s) {
|
||||||
pa_sink_assert_io_context(s);
|
pa_sink_assert_io_context(s);
|
||||||
|
|
||||||
PA_HASHMAP_FOREACH(i, s->thread_info.inputs, state) {
|
PA_HASHMAP_FOREACH(i, s->thread_info.inputs, state) {
|
||||||
if (pa_atomic_load(&i->before_ramping_v))
|
|
||||||
i->thread_info.future_soft_volume = i->soft_volume;
|
|
||||||
|
|
||||||
if (pa_cvolume_equal(&i->thread_info.soft_volume, &i->soft_volume))
|
if (pa_cvolume_equal(&i->thread_info.soft_volume, &i->soft_volume))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if (!pa_atomic_load(&i->before_ramping_v))
|
|
||||||
i->thread_info.soft_volume = i->soft_volume;
|
i->thread_info.soft_volume = i->soft_volume;
|
||||||
|
|
||||||
pa_sink_input_request_rewind(i, 0, TRUE, FALSE, FALSE);
|
pa_sink_input_request_rewind(i, 0, TRUE, FALSE, FALSE);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue