jpemartins/speex.js

Decoded Array bigger than Orginal array

Opened this issue · 0 comments

Thanks for the lib.
When I do inArray>encode>decode>outArray I get an outArray wich is bigger than my inArray.

var speex = new Speex({quality: 7});
var d1 = speex.encode(inArray);
var outArray = speex.decode(d1);

inArray.length = 2048
outArray.length = 2079

why and how can i fix this? Because of this reason i get legs in my voice chat.
Thanks :)

btw. Is their a special mode for data that is splittet in chuncks ?