Displaying 2 results from an estimated 2 matches for "decbuff".
Did you mean:
  cbuff
  
2006 Jul 20
1
Invalid sideband mode encountered
...sideband): 5
   
  Therefore, because of this, i cannot decode. 
  Does anybody have an idea on fixing this error? I've attached parts 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...
2006 Jul 18
1
SpeexEncoder requires 320 samples to process a Frame, not 160
...exEncoder.getEncoder().setVad(vad);
  }
  if (dtx) 
  {
  speexEncoder.getEncoder().setDtx(dtx);
  }
  
  int pcmPacketSize = 320; 
  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, tru...