Skip to content

Commit

Permalink
Update Emscripten test.
Browse files Browse the repository at this point in the history
  • Loading branch information
mackron committed Aug 6, 2023
1 parent efa9e7d commit d4fd841
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/test_emscripten/ma_test_emscripten.c
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,12 @@ static EM_BOOL on_canvas_click(int eventType, const EmscriptenMouseEvent* pMouse
}

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;
Expand Down

0 comments on commit d4fd841

Please sign in to comment.