Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Patched to compile on non-Emscripten targets.
  • Loading branch information
icculus committed Dec 24, 2014
1 parent 77ccc41 commit 707c11f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/loopwave.c
Expand Up @@ -79,12 +79,14 @@ poked(int sig)
done = 1;
}

#ifdef __EMSCRIPTEN__
void
loop()
{
if(done || (SDL_GetAudioStatus() != SDL_AUDIO_PLAYING))
emscripten_cancel_main_loop();
}
#endif

int
main(int argc, char *argv[])
Expand Down

0 comments on commit 707c11f

Please sign in to comment.