Lines Matching defs:midbuf
96 free_temp(&s->midbuf);
280 s->midbuf= s->in;
284 s->midbuf.ch_count= s->used_ch_count;
289 s->midbuf.ch_count= s->out.ch_count;
295 set_audiodata_fmt(&s->midbuf, s->int_sample_fmt);
489 AudioData *postin, *midbuf, *preout;
505 av_assert0(s->midbuf.ch_count == s->used_ch_count);
506 if((ret=swri_realloc_audio(&s->midbuf, out_count))<0)
509 av_assert0(s->midbuf.ch_count == s->out.ch_count);
510 if((ret=swri_realloc_audio(&s->midbuf, in_count))<0)
518 midbuf_tmp= s->midbuf;
519 midbuf= &midbuf_tmp;
527 midbuf= postin;
530 preout= midbuf;
540 else if(preout==postin) preout= midbuf= postin= out;
541 else if(preout==midbuf) preout= midbuf= out;
550 if(postin != midbuf)
551 out_count= resample(s, midbuf, out_count, postin, in_count);
552 if(midbuf != preout)
553 swri_rematrix(s, preout, midbuf, out_count, preout==out);
555 if(postin != midbuf)
556 swri_rematrix(s, midbuf, postin, in_count, midbuf==out);
557 if(midbuf != preout)
558 out_count= resample(s, preout, out_count, midbuf, in_count);