mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-04 13:29:59 -05:00
don't hit an assert when trying to resample data for 6channel audio
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@853 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
parent
7abf17edcd
commit
c3b9c3dc73
1 changed files with 2 additions and 1 deletions
|
|
@ -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) {
|
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;
|
return (((out_length / r->o_fz)*r->i_ss.rate)/r->o_ss.rate) * r->i_fz;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue