diff options
Diffstat (limited to 'polyp/sink-input.c')
-rw-r--r-- | polyp/sink-input.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/polyp/sink-input.c b/polyp/sink-input.c index dd7469e0..cf255a07 100644 --- a/polyp/sink-input.c +++ b/polyp/sink-input.c @@ -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); + } +} |