|
@@ -215,6 +215,9 @@ EMSCRIPTENAUDIO_OpenDevice(_THIS, void *handle, const char *devname, int iscaptu
|
|
} else if (typeof(webkitAudioContext) !== 'undefined') {
|
|
} else if (typeof(webkitAudioContext) !== 'undefined') {
|
|
SDL2.audioContext = new webkitAudioContext();
|
|
SDL2.audioContext = new webkitAudioContext();
|
|
}
|
|
}
|
|
|
|
+ if (SDL2.audioContext) {
|
|
|
|
+ autoResumeAudioContext(SDL2.audioContext);
|
|
|
|
+ }
|
|
}
|
|
}
|
|
return SDL2.audioContext === undefined ? -1 : 0;
|
|
return SDL2.audioContext === undefined ? -1 : 0;
|
|
}, iscapture);
|
|
}, iscapture);
|