Home | History | Annotate | Download | only in doc

Lines Matching defs:FRAME_SIZE

39 #define FRAME_SIZE 960
54 opus_int16 in[FRAME_SIZE*CHANNELS];
115 int frame_size;
118 fread(pcm_bytes, sizeof(short)*CHANNELS, FRAME_SIZE, fin);
122 for (i=0;i<CHANNELS*FRAME_SIZE;i++)
126 nbBytes = opus_encode(encoder, in, FRAME_SIZE, cbits, MAX_PACKET_SIZE);
134 /* Decode the data. In this example, frame_size will be constant because
138 frame_size = opus_decode(decoder, cbits, nbBytes, out, MAX_FRAME_SIZE, 0);
139 if (frame_size<0)
146 for(i=0;i<CHANNELS*frame_size;i++)
152 fwrite(pcm_bytes, sizeof(short), frame_size*CHANNELS, fout);