search for: bodybytes

Displaying 2 results from an estimated 2 matches for "bodybytes".

Did you mean: body_bytes
2006 Jul 18
1
SpeexEncoder requires 320 samples to process a Frame, not 160
...speexEncoder.processData(cmbuffer, 0, pcmPacketSize); nbBytes = speexEncoder.getProcessedData(temp, 0); return temp; } public static byte[] decode(byte[] decbuffer) { SpeexDecoder speexDecoder = new SpeexDecoder(); int packetCount = 0; byte[] payload = new byte[65536]; int bodybytes = nbBytes; int decsize = 0; int Totsize = 0; byte[] completebuffer = new byte[4000000]; Totsize = myNum * bodybytes; speexDecoder.init(1, 8000, 1, true); while((packetCount*nbBytes) <= Totsize) { System.arraycopy(decbuffer, packetCount*bodybytes, payload, 0, bodybyte...
2006 Oct 09
1
Vorbis primitive API examples (LONG)
.../* decode memory management pool */ ogg_buffer_state *bufferpool; /* stream buffers */ ogg_reference *fifo_head; ogg_reference *fifo_tail; long fifo_fill; /* stream sync management */ int unsynced; int headerbytes; int bodybytes; } ogg_sync_state; typedef struct ogg_stream_state { ogg_reference *header_head; ogg_reference *header_tail; ogg_reference *body_head; ogg_reference *body_tail; int e_o_s; /* set when we have buffered the last packet in the logical bitstream...