Lines Matching defs:samples
56 short *samples;
82 /* the codec gives us the frame size, in samples */
84 samples = malloc(frame_size * 2 * c->channels);
99 samples[2*j] = (int)(sin(t) * 10000);
100 samples[2*j+1] = samples[2*j];
103 /* encode the samples */
104 out_size = avcodec_encode_audio(c, outbuf, outbuf_size, samples);
109 free(samples);
377 /* the codec gives us the frame size, in samples */