Displaying 1 result from an estimated 1 matches for "decsiz".
Did you mean:
decsize
2006 Jul 18
1
SpeexEncoder requires 320 samples to process a Frame, not 160
...(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, bodybytes);
try
{
sp...