fill-in undeclared variable, refs #192

This commit is contained in:
Jakob Ketterl 2020-11-04 22:38:24 +01:00
parent e700f0a9e4
commit 0f4b8dc794
1 changed files with 1 additions and 0 deletions

View File

@ -193,6 +193,7 @@ AudioEngine.prototype.resetStats = function() {
};
AudioEngine.prototype.setupResampling = function() { //both at the server and the client
var targetRate = this.audioContext.sampleRate;
var audio_params = this.findRate(8000, 12000);
if (!audio_params) {
this.resamplingFactor = 0;