1
1
Fork 0
Browse Source

fix audio pop

master
alistair 1 year ago
parent
commit
233a75febb
  1. 1
      build-android/src/game.c
  2. 2
      src/audio.c

1
build-android/src/game.c

@ -138,6 +138,7 @@ int win_long_comparator(void *context_unused, const void *a, const void *b) { @@ -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__

2
src/audio.c

@ -43,7 +43,7 @@ void callbackfn3(void *unused, Uint8 *stream, int len) { @@ -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);
}

Loading…
Cancel
Save