Lines Matching refs:inbuf
146 opus_int16 *inbuf; in test_encode() local
154 inbuf = (opus_int16*)malloc(sizeof(*inbuf)*SSAMPLES); in test_encode()
155 generate_music(inbuf, SSAMPLES/2); in test_encode()
162 len = opus_encode(enc, &inbuf[samp_count*channels], frame_size, packet, MAX_PACKET); in test_encode()
180 free(inbuf); in test_encode()
286 short *inbuf; in run_test1() local
375 inbuf=(short *)malloc(sizeof(short)*SAMPLES*2); in run_test1()
378 if(inbuf==NULL || outbuf==NULL || out2buf==NULL)test_failed(); in run_test1()
380 generate_music(inbuf,SAMPLES); in run_test1()
389 if(opus_encode(enc, inbuf, 500, packet, MAX_PACKET)!=OPUS_BAD_ARG)test_failed(); in run_test1()
438 len = opus_encode(enc, &inbuf[i<<1], frame_size, packet, MAX_PACKET); in run_test1()
516 len = opus_multistream_encode(MSenc, &inbuf[i<<1], frame_size, packet, MAX_PACKET); in run_test1()
568 len = opus_encode(enc, &inbuf[offset<<1], frame_size, packet, MAX_PACKET); in run_test1()
626 free(inbuf); in run_test1()