Displaying 1 result from an estimated 1 matches for "inputframesize".
2008 Jul 11
0
Speex issue
...amp;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.packetno = 2 + oggPacketCount;
ogg_stream_packetin(&oggStream, &oggPacket);
while (((lastFrame) ? ogg_stream_flush(&oggStream, &oggPage) :
ogg_stream_pageout(&oggStream,&oggPage)) != 0)
{
file.write((char*)oggPage.header,oggP...