From 24291aff27c671c11619684cb10d3b36fdf87c0d Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Tue, 3 Aug 2004 19:26:56 +0000 Subject: sample cache work git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@102 fefdeb5f-60dc-0310-8127-8f9354f1896f --- polyp/sample-util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'polyp/sample-util.c') diff --git a/polyp/sample-util.c b/polyp/sample-util.c index d608ce1b..5b1cd626 100644 --- a/polyp/sample-util.c +++ b/polyp/sample-util.c @@ -111,7 +111,7 @@ size_t pa_mix(struct pa_mix_info channels[], unsigned nchannels, void *data, siz void pa_volume_memchunk(struct pa_memchunk*c, const struct pa_sample_spec *spec, uint32_t volume) { int16_t *d; size_t n; - assert(c && spec && (c->length % pa_sample_size(spec) == 0)); + assert(c && spec && (c->length % pa_frame_size(spec) == 0)); assert(spec->format == PA_SAMPLE_S16NE); if (volume == PA_VOLUME_NORM) -- cgit