jpemartins / speex.js

Speex codec in Javascript. Mirror from https://code.ua.pt/projects/speex-js
214 stars 63 forks source link

Decoded Array bigger than Orginal array #21

Open cracker0dks opened 9 years ago

cracker0dks commented 9 years ago

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 ?