aboutsummaryrefslogtreecommitdiff
path: root/src/library_sdl.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/library_sdl.js')
-rw-r--r--src/library_sdl.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/library_sdl.js b/src/library_sdl.js
index a23a9d21..7a1619ff 100644
--- a/src/library_sdl.js
+++ b/src/library_sdl.js
@@ -918,7 +918,7 @@ var LibrarySDL = {
info.audio = audio.cloneNode(true);
if (SDL.channelFinished) {
info.audio['onended'] = function() { // TODO: cache these
- Browser.getAsyncCall(SDL.channelFinished)(channel);
+ Runtime.getFuncWrapper(SDL.channelFinished)(channel);
}
}
info.audio.play();
@@ -938,7 +938,7 @@ var LibrarySDL = {
info.audio = null;
}
if (SDL.channelFinished) {
- Browser.getAsyncCall(SDL.channelFinished)(channel);
+ Runtime.getFuncWrapper(SDL.channelFinished)(channel);
}
return 0;
},