19 #include <emscripten/emscripten.h> 57 emscripten_cancel_main_loop();
64 SDL_Log(
"Device has %u bytes queued.\n", (
unsigned int) queued);
67 SDL_Log(
"Device queued %u more bytes.\n", (
unsigned int)
wave.soundlen);
76 main(
int argc,
char *argv[])
92 SDL_strlcpy(filename,
"sample.wav",
sizeof(filename));
105 signal(SIGHUP,
poked);
107 signal(SIGINT,
poked);
109 signal(SIGQUIT,
poked);
111 signal(SIGTERM,
poked);
132 #ifdef __EMSCRIPTEN__ 133 emscripten_set_main_loop(
loop, 0, 1);
#define SDL_GetAudioStatus
int main(int argc, char *argv[])
uint32_t Uint32
An unsigned 32-bit integer type.
#define SDL_GetQueuedAudioSize
uint8_t Uint8
An unsigned 8-bit integer type.
#define SDL_LoadWAV(file, spec, audio_buf, audio_len)
#define SDL_LogSetPriority