From 1fdc8c85041cfadd5211a13cc69b787c2cf3d9f1 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Tue, 27 Jan 2009 03:10:33 +0100 Subject: If supported, leave the volume for event sounds unspecified --- src/pulse.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/pulse.c b/src/pulse.c index 11d6e52..91aee9c 100644 --- a/src/pulse.c +++ b/src/pulse.c @@ -641,7 +641,11 @@ int driver_play(ca_context *c, uint32_t id, ca_proplist *proplist, ca_finish_cal pa_proplist *l = NULL; const char *n, *vol, *ct; char *name = NULL; +#if defined(PA_MAJOR) && ((PA_MAJOR > 0) || (PA_MAJOR == 0 && PA_MINOR > 9) || (PA_MAJOR == 0 && PA_MINOR == 9 && PA_MICRO >= 15)) + pa_volume_t v = (pa_volume_t) -1; +#else pa_volume_t v = PA_VOLUME_NORM; +#endif pa_sample_spec ss; ca_cache_control_t cache_control = CA_CACHE_CONTROL_NEVER; struct outstanding *out = NULL; -- cgit