|
|
@@ -333,8 +333,6 @@ static int EMSCRIPTENAUDIO_OpenDevice(_THIS, const char *devname)
|
|
|
|
|
|
if ((navigator.mediaDevices !== undefined) && (navigator.mediaDevices.getUserMedia !== undefined)) {
|
|
|
navigator.mediaDevices.getUserMedia({ audio: true, video: false }).then(have_microphone).catch(no_microphone);
|
|
|
- } else if (navigator.webkitGetUserMedia !== undefined) {
|
|
|
- navigator.webkitGetUserMedia({ audio: true, video: false }, have_microphone, no_microphone);
|
|
|
}
|
|
|
}, this->spec.channels, this->spec.samples, HandleCaptureProcess, this);
|
|
|
} else {
|
|
|
@@ -420,8 +418,6 @@ static SDL_bool EMSCRIPTENAUDIO_Init(SDL_AudioDriverImpl *impl)
|
|
|
capture_available = available && MAIN_THREAD_EM_ASM_INT({
|
|
|
if ((typeof(navigator.mediaDevices) !== 'undefined') && (typeof(navigator.mediaDevices.getUserMedia) !== 'undefined')) {
|
|
|
return true;
|
|
|
- } else if (typeof(navigator.webkitGetUserMedia) !== 'undefined') {
|
|
|
- return true;
|
|
|
}
|
|
|
return false;
|
|
|
});
|