Update Emscripten test.

This commit is contained in:
David Reid
2023-08-06 15:39:54 +10:00
parent efa9e7d727
commit d4fd8411c4
@@ -104,6 +104,12 @@ static EM_BOOL on_canvas_click(int eventType, const EmscriptenMouseEvent* pMouse
} }
isRunning = MA_TRUE; isRunning = MA_TRUE;
} else {
if (ma_device_get_state(&device) == ma_device_state_started) {
ma_device_stop(&device);
} else {
ma_device_start(&device);
}
} }
(void)eventType; (void)eventType;