Fix for newer versions of emscripten

This commit is contained in:
BenTalagan
2019-02-15 15:45:39 +01:00
parent a95f09f674
commit 082088f152
3 changed files with 4 additions and 5 deletions
+2 -2
View File
@@ -88,9 +88,9 @@ eSpeakNGWorker.prototype.synthesize = function (aText, aCallback) {
return aCallback(data, events) ? 1 : 0;
}
var fp = Runtime.addFunction(cb);
var fp = addFunction(cb);
this.synth_(aText, fp);
Runtime.removeFunction(fp);
removeFunction(fp);
};
eSpeakNGWorker.prototype.synthesize_ipa = function (aText, aCallback) {