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);
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);
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);