diff options
author | Lennart Poettering <lennart@poettering.net> | 2004-08-17 17:17:22 +0000 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2004-08-17 17:17:22 +0000 |
commit | ca2265f37277081b4fe82e375923483c2e03931d (patch) | |
tree | 1766658296f7ea550e9148bd467e6d0a89781c10 /polyp/sample.c | |
parent | f693aa4c8811b67377a4fcc55887d03876fb48be (diff) |
Documentation work
add pkg-config support for GLIB main loop
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@133 fefdeb5f-60dc-0310-8127-8f9354f1896f
Diffstat (limited to 'polyp/sample.c')
-rw-r--r-- | polyp/sample.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/polyp/sample.c b/polyp/sample.c index 4f93f2b7..173de9c1 100644 --- a/polyp/sample.c +++ b/polyp/sample.c @@ -82,7 +82,7 @@ int pa_sample_spec_equal(const struct pa_sample_spec*a, const struct pa_sample_s return (a->format == b->format) && (a->rate == b->rate) && (a->channels == b->channels); } -void pa_sample_snprint(char *s, size_t l, const struct pa_sample_spec *spec) { +void pa_sample_spec_snprint(char *s, size_t l, const struct pa_sample_spec *spec) { static const char* const table[]= { [PA_SAMPLE_U8] = "U8", [PA_SAMPLE_ALAW] = "ALAW", @@ -97,10 +97,10 @@ void pa_sample_snprint(char *s, size_t l, const struct pa_sample_spec *spec) { snprintf(s, l, "%s %uch %uHz", table[spec->format], spec->channels, spec->rate); } -uint32_t pa_volume_multiply(uint32_t a, uint32_t b) { +pa_volume_t pa_volume_multiply(pa_volume_t a, pa_volume_t b) { uint64_t p = a; p *= b; p /= PA_VOLUME_NORM; - return (uint32_t) p; + return (pa_volume_t) p; } |