Displaying 1 result from an estimated 1 matches for "packetbytes".
2008 Jul 11
0
Speex issue
...at me 
for missing. This method is called when enough data has 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...