diff options
author | Lennart Poettering <lennart@poettering.net> | 2009-01-27 03:10:33 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2009-01-27 03:10:33 +0100 |
commit | 1fdc8c85041cfadd5211a13cc69b787c2cf3d9f1 (patch) | |
tree | 2221ec96c5e0a675e60c0b3b71a5f3d5e51da946 /src/pulse.c | |
parent | b1afe65e527b35bc2dfa2768995b05b0a21a3ae1 (diff) | |
download | libcanberra-1fdc8c85041cfadd5211a13cc69b787c2cf3d9f1.tar.gz |
If supported, leave the volume for event sounds unspecified
Diffstat (limited to 'src/pulse.c')
-rw-r--r-- | src/pulse.c | 4 |
1 files changed, 4 insertions, 0 deletions
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; |