From 233a75febb075adb2e98ce0ecf5df2b91e7c9879 Mon Sep 17 00:00:00 2001 From: alistair Date: Sun, 27 Nov 2022 16:21:34 +1000 Subject: [PATCH] fix audio pop --- build-android/src/game.c | 1 + src/audio.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/build-android/src/game.c b/build-android/src/game.c index 33eb6e6..38263f2 100644 --- a/build-android/src/game.c +++ b/build-android/src/game.c @@ -138,6 +138,7 @@ int win_long_comparator(void *context_unused, const void *a, const void *b) { return A - B; } + #ifdef SCORE_SYSTEM void sort_times(void) { #ifdef __linux__ diff --git a/src/audio.c b/src/audio.c index 0609261..0c23aa8 100644 --- a/src/audio.c +++ b/src/audio.c @@ -43,7 +43,7 @@ void callbackfn3(void *unused, Uint8 *stream, int len) { void start_audio(void) { - if (Mix_OpenAudio(G_AUDIO_SFREQ,AUDIO_U8,1,G_AUDIO_BSIZE) < 0) { + if (Mix_OpenAudio(G_AUDIO_SFREQ,AUDIO_S8,1,G_AUDIO_BSIZE) < 0) { fprintf(stderr, "Unable to open audio: %s\n", SDL_GetError()); exit(1); }