Displaying 1 result from an estimated 1 matches for "packet_buffer_size".
2008 Jul 11
0
Speex issue
...accumulated in
inputFrame, after the members have been initialized and the headers have
been written:
oggPacketCount++;
speex_bits_reset(&speexBits);
speex_encode_int(encoderState, inputFrame, &speexBits);
int packetBytes = speex_bits_write(&speexBits, packetBuffer,
PACKET_BUFFER_SIZE);
oggPacket.packet = (unsigned char*)packetBuffer;
oggPacket.bytes = packetBytes;
oggPacket.b_o_s = 0; //this is not the beginning of the stream
oggPacket.e_o_s = (lastFrame) ? 1 : 0;
oggPacket.granulepos = (1 + oggPacketCount) * inputFrameSize -
lookahead;
oggPacket.packe...