Lines Matching refs:SAMPLES
32 #define SAMPLES 1000
226 uint8_t array_in[SAMPLES*8*8];
227 uint8_t array_mid[SAMPLES*8*8*3];
228 uint8_t array_out[SAMPLES*8*8+100];
320 setup_array(ain , array_in , in_sample_fmt, SAMPLES);
321 setup_array(amid, array_mid, out_sample_fmt, 3*SAMPLES);
322 setup_array(aout, array_out, in_sample_fmt , SAMPLES);
325 for(i=0; i<SAMPLES; i++)
326 set(ain, ch, i, in_ch_count, in_sample_fmt, sin(i*i*3/SAMPLES));
329 audiogen(ain, in_sample_fmt, in_ch_count, SAMPLES/6+1, SAMPLES);
333 mid_count= swr_convert(forw_ctx, amid, 3*SAMPLES, (const uint8_t **)ain, SAMPLES);
335 mid_count= swr_convert(forw_ctx, amid, 0, (const uint8_t **)ain, SAMPLES);
336 mid_count+=swr_convert(forw_ctx, amid, 3*SAMPLES, (const uint8_t **)ain, 0);
342 mid_count+=swr_convert(forw_ctx, amid, 3*SAMPLES, (const uint8_t **)ain, 0);
347 mid_count+=swr_convert(forw_ctx, amid, 1, (const uint8_t **)ain, SAMPLES-3);
350 mid_count+=swr_convert(forw_ctx, amid, 3*SAMPLES, (const uint8_t **)ain, 0);
353 out_count= swr_convert(backw_ctx,aout, SAMPLES, (const uint8_t **)amid, mid_count);
382 flush_count+= swr_convert(backw_ctx,aout, SAMPLES-flush_i, 0, 0);