update 0.9.0

This commit is contained in:
Rupert Hausberger 2016-08-06 02:19:59 +02:00
commit f1f8a1e846
4 changed files with 24 additions and 4 deletions

View file

@ -587,8 +587,17 @@ function ScriptedAmigaEmulator() {
};
this.mute = function(mute) {
this.audio.mute(mute);
return SAEE_None;
if (this.running) {
this.audio.mute(mute);
if (mute)
SAEF_log("sae.mute() audio muted");
else
SAEF_log("sae.mute() playing audio");
return SAEE_None;
} else {
SAEF_warn("sae.mute() emulation not running");
return SAEE_NotRunning;
}
};
this.keyPress = function(e, down) {