Fix warnings about static function and prototype

This commit is contained in:
Sylvain
2023-03-08 11:40:07 +01:00
committed by Sylvain Becker
parent 61309b4382
commit 16bb6a0b3d
30 changed files with 137 additions and 142 deletions

View File

@@ -31,9 +31,9 @@ typedef struct
SDL_atomic_t done;
} callback_data;
callback_data cbd[64];
static callback_data cbd[64];
void SDLCALL
static void SDLCALL
play_through_once(void *arg, Uint8 *stream, int len)
{
callback_data *cbdata = (callback_data *)arg;
@@ -54,18 +54,18 @@ play_through_once(void *arg, Uint8 *stream, int len)
}
}
void loop()
#ifdef __EMSCRIPTEN__
static void loop(void)
{
if (SDL_AtomicGet(&cbd[0].done)) {
#ifdef __EMSCRIPTEN__
emscripten_cancel_main_loop();
#endif
SDL_PauseAudioDevice(cbd[0].dev);
SDL_CloseAudioDevice(cbd[0].dev);
SDL_free(sound);
SDL_Quit();
}
}
#endif
static void
test_multi_audio(int devcount)