mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-10-29 05:40:23 -04:00
resampler: Cleanup, index of memchunks is not used
Signed-off-by: Peter Meerwald <pmeerw@pmeerw.net>
This commit is contained in:
parent
b14e9c0a6c
commit
d0fd59c34c
1 changed files with 0 additions and 3 deletions
|
|
@ -1168,7 +1168,6 @@ static pa_memchunk* convert_to_work_format(pa_resampler *r, pa_memchunk *input)
|
|||
|
||||
n_samples = (unsigned) ((input->length / r->i_fz) * r->i_ss.channels);
|
||||
|
||||
r->to_work_format_buf.index = 0;
|
||||
r->to_work_format_buf.length = r->w_sz * n_samples;
|
||||
r->to_work_format_buf_size = fit_buf(r, &r->to_work_format_buf, r->to_work_format_buf_size);
|
||||
|
||||
|
|
@ -1283,7 +1282,6 @@ static pa_memchunk *resample(pa_resampler *r, pa_memchunk *input) {
|
|||
|
||||
out_n_frames = ((in_n_frames*r->o_ss.rate)/r->i_ss.rate)+EXTRA_FRAMES;
|
||||
|
||||
r->resample_buf.index = 0;
|
||||
r->resample_buf.length = r->w_fz * out_n_frames;
|
||||
r->resample_buf_size = fit_buf(r, &r->resample_buf, r->resample_buf_size);
|
||||
|
||||
|
|
@ -1316,7 +1314,6 @@ static pa_memchunk *convert_from_work_format(pa_resampler *r, pa_memchunk *input
|
|||
n_samples = (unsigned) (input->length / r->w_sz);
|
||||
n_frames = n_samples / r->o_ss.channels;
|
||||
|
||||
r->from_work_format_buf.index = 0;
|
||||
r->from_work_format_buf.length = r->o_fz * n_frames;
|
||||
r->from_work_format_buf_size = fit_buf(r, &r->from_work_format_buf, r->from_work_format_buf_size);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue