Skip to content

Commit

Permalink
Fix audio breakage bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Connor Monahan committed Sep 10, 2015
1 parent 75e4704 commit 431b7bd
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion js/audio.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,10 @@ GameBoyAdvanceAudio.prototype.clear = function() {

this.enabled = false;
if (this.context) {
this.jsAudio.disconnect(this.context.destination);
try {
this.jsAudio.disconnect(this.context.destination);
} catch (e) {
}
}

this.enableChannel3 = false;
Expand Down

0 comments on commit 431b7bd

Please sign in to comment.