Skip to content

Commit 3a738fe

Browse files
committed
call stop(0) in WebAudio as a workaround for a WebKit bug emscripten-core#3861
1 parent 56c5055 commit 3a738fe

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/library_sdl.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1123,7 +1123,7 @@ var LibrarySDL = {
11231123
// graph will send the onended signal, but we don't want to process that, since pausing should not clear/destroy the audio
11241124
// channel.
11251125
audio.webAudioNode['onended'] = undefined;
1126-
audio.webAudioNode.stop();
1126+
audio.webAudioNode.stop(0); // 0 is a default parameter, but WebKit is confused by it #3861
11271127
audio.webAudioNode = undefined;
11281128
} catch(e) {
11291129
Module.printErr('pauseWebAudio failed: ' + e);

0 commit comments

Comments
 (0)