X-Git-Url: https://code.delx.au/pulseaudio/blobdiff_plain/e9768d9aac8c7e9a5313717f754c0b8b574c4765..fb70fa22c36f9220e8f4424948d0af476fb3d7a9:/src/pulsecore/source.h diff --git a/src/pulsecore/source.h b/src/pulsecore/source.h index 5c74a516..63185950 100644 --- a/src/pulsecore/source.h +++ b/src/pulsecore/source.h @@ -426,6 +426,13 @@ bool pa_source_volume_change_apply(pa_source *s, pa_usec_t *usec_to_next); void pa_source_invalidate_requested_latency(pa_source *s, bool dynamic); pa_usec_t pa_source_get_latency_within_thread(pa_source *s); +/* Called from the main thread, from source-output.c only. The normal way to + * set the source reference volume is to call pa_source_set_volume(), but the + * flat volume logic in source-output.c needs also a function that doesn't do + * all the extra stuff that pa_source_set_volume() does. This function simply + * sets s->reference_volume and fires change notifications. */ +void pa_source_set_reference_volume_direct(pa_source *s, const pa_cvolume *volume); + #define pa_source_assert_io_context(s) \ pa_assert(pa_thread_mq_get() || !PA_SOURCE_IS_LINKED((s)->state))