diff options
author | Lennart Poettering <lennart@poettering.net> | 2004-08-15 13:15:51 +0000 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2004-08-15 13:15:51 +0000 |
commit | efc3491f1f1ca42cd776f96ccfb006c53717d2e8 (patch) | |
tree | a55f3d43bd4b3cb4063ab870bcc224fba8a05454 /polyp/sample.h | |
parent | c17545108b33162fb186f797b8a408511e9252f4 (diff) |
add support for volume manipulation
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@125 fefdeb5f-60dc-0310-8127-8f9354f1896f
Diffstat (limited to 'polyp/sample.h')
-rw-r--r-- | polyp/sample.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/polyp/sample.h b/polyp/sample.h index a7cde093..e397a1df 100644 --- a/polyp/sample.h +++ b/polyp/sample.h @@ -65,8 +65,13 @@ int pa_sample_spec_equal(const struct pa_sample_spec*a, const struct pa_sample_s #define PA_SAMPLE_SNPRINT_MAX_LENGTH 32 void pa_sample_snprint(char *s, size_t l, const struct pa_sample_spec *spec); +/** Normal volume (100%) */ #define PA_VOLUME_NORM (0x100) + +/** Muted volume (0%) */ #define PA_VOLUME_MUTE (0) + +/** Multiply two volumes specifications, return the result. This uses PA_VOLUME_NORM as neutral element of multiplication. */ uint32_t pa_volume_multiply(uint32_t a, uint32_t b); PA_C_DECL_END |