search for: completebuffer

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

2006 Jul 20
1
Invalid sideband mode encountered
...ts of my code to ths email: //Declare the class mySpeexEncDec test = new mySpeexEncDec (); //Decoding procedure public static byte[] decode(byte[] decbuffer, int myBufferSize) { SpeexDecoder speexDecoder = new SpeexDecoder(); byte[] payload = new byte[FRAME_SIZE*2]; byte[] completebuffer = new byte[4000000]; int mode = 0; int samplerate = 8000; int channels = 1; speexDecoder.init(mode, samplerate, channels, true); for (int packetCount = 0; packetCount < getNbPackets();packetCount++) { System.arraycopy(decbuffer, packetCount*encodedNbBytes(), payload, 0, e...
2006 Jul 18
1
SpeexEncoder requires 320 samples to process a Frame, not 160
...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, bodybytes); try { speexDecoder.processData(payload,0, bodybytes);...