use local codec for fft, too

This commit is contained in:
Jakob Ketterl
2020-01-05 23:33:07 +01:00
parent c8c5ce8105
commit 9187bb4371
2 changed files with 7 additions and 2 deletions

View File

@ -230,10 +230,14 @@ AudioEngine.prototype.getBuffersize = function() {
};
function ImaAdpcmCodec() {
this.reset();
}
ImaAdpcmCodec.prototype.reset = function() {
this.stepIndex = 0;
this.predictor = 0;
this.step = 0;
}
};
ImaAdpcmCodec.imaIndexTable = [ -1, -1, -1, -1, 2, 4, 6, 8, -1, -1, -1, -1, 2, 4, 6, 8 ];