projects
/
profile
/
ivi
/
pulseaudio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7abf17e
)
don't hit an assert when trying to resample data for 6channel audio
author
Lennart Poettering
<lennart@poettering.net>
Sat, 13 May 2006 21:18:32 +0000
(21:18 +0000)
committer
Lennart Poettering
<lennart@poettering.net>
Sat, 13 May 2006 21:18:32 +0000
(21:18 +0000)
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@853
fefdeb5f
-60dc-0310-8127-
8f9354f1896f
src/polypcore/resampler.c
patch
|
blob
|
history
diff --git
a/src/polypcore/resampler.c
b/src/polypcore/resampler.c
index
a50b21b
..
7e85e27
100644
(file)
--- a/
src/polypcore/resampler.c
+++ b/
src/polypcore/resampler.c
@@
-168,7
+168,8
@@
void pa_resampler_run(pa_resampler *r, const pa_memchunk *in, pa_memchunk *out)
}
size_t pa_resampler_request(pa_resampler *r, size_t out_length) {
- assert(r && (out_length % r->o_fz) == 0);
+ assert(r);
+
return (((out_length / r->o_fz)*r->i_ss.rate)/r->o_ss.rate) * r->i_fz;
}