mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-04 13:29:59 -05:00
add support for volume manipulation
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@125 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
parent
c17545108b
commit
efc3491f1f
7 changed files with 71 additions and 7 deletions
|
|
@ -168,3 +168,12 @@ void pa_sink_input_drop(struct pa_sink_input *i, size_t length) {
|
|||
i->resampled_chunk.index = i->resampled_chunk.length = 0;
|
||||
}
|
||||
}
|
||||
|
||||
void pa_sink_input_set_volume(struct pa_sink_input *i, uint32_t volume) {
|
||||
assert(i);
|
||||
|
||||
if (i->volume != volume) {
|
||||
i->volume = volume;
|
||||
pa_subscription_post(i->sink->core, PA_SUBSCRIPTION_EVENT_SINK_INPUT|PA_SUBSCRIPTION_EVENT_CHANGE, i->index);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue