mirror of
https://github.com/mackron/miniaudio.git
synced 2026-04-23 08:44:04 +02:00
Fix a couple of warnings on the Emscripten build.
This commit is contained in:
+2
-2
@@ -42286,14 +42286,14 @@ extern "C" {
|
|||||||
#endif
|
#endif
|
||||||
void EMSCRIPTEN_KEEPALIVE ma_device_post_notification_unlocked_emscripten(ma_device* pDevice)
|
void EMSCRIPTEN_KEEPALIVE ma_device_post_notification_unlocked_emscripten(ma_device* pDevice)
|
||||||
{
|
{
|
||||||
return ma_device_post_notification_unlocked(pDevice);
|
ma_device_post_notification_unlocked(pDevice);
|
||||||
}
|
}
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
static ma_bool32 ma_is_capture_supported__webaudio()
|
static ma_bool32 ma_is_capture_supported__webaudio(void)
|
||||||
{
|
{
|
||||||
return EM_ASM_INT({
|
return EM_ASM_INT({
|
||||||
return (navigator.mediaDevices !== undefined && navigator.mediaDevices.getUserMedia !== undefined);
|
return (navigator.mediaDevices !== undefined && navigator.mediaDevices.getUserMedia !== undefined);
|
||||||
|
|||||||
Reference in New Issue
Block a user