Lines Matching refs:inbuf
146 opus_int16 *inbuf; in test_encode() local
153 inbuf = (opus_int16*)malloc(sizeof(*inbuf)*SSAMPLES); in test_encode()
154 generate_music(inbuf, SSAMPLES/2); in test_encode()
161 len = opus_encode(enc, &inbuf[samp_count*channels], frame_size, packet, MAX_PACKET); in test_encode()
179 free(inbuf); in test_encode()
284 short *inbuf; in run_test1() local
373 inbuf=(short *)malloc(sizeof(short)*SAMPLES*2); in run_test1()
376 if(inbuf==NULL || outbuf==NULL || out2buf==NULL)test_failed(); in run_test1()
378 generate_music(inbuf,SAMPLES); in run_test1()
387 if(opus_encode(enc, inbuf, 500, packet, MAX_PACKET)!=OPUS_BAD_ARG)test_failed(); in run_test1()
436 len = opus_encode(enc, &inbuf[i<<1], frame_size, packet, MAX_PACKET); in run_test1()
514 len = opus_multistream_encode(MSenc, &inbuf[i<<1], frame_size, packet, MAX_PACKET); in run_test1()
566 len = opus_encode(enc, &inbuf[offset<<1], frame_size, packet, MAX_PACKET); in run_test1()
624 free(inbuf); in run_test1()