From 2cd74f864b71df5d50f6afba32424a3b4bbb9722 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Fri, 22 Sep 2017 11:15:57 -0700 Subject: [PATCH] The volume was too high, clamp to SDL_MIX_MAXVOLUME --- Xcode-iOS/Demos/src/mixer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Xcode-iOS/Demos/src/mixer.c b/Xcode-iOS/Demos/src/mixer.c index 81f0166f85..14945ad334 100644 --- a/Xcode-iOS/Demos/src/mixer.c +++ b/Xcode-iOS/Demos/src/mixer.c @@ -250,7 +250,7 @@ audioCallback(void *userdata, Uint8 * stream, int len) /* mix this sound effect with the output */ SDL_MixAudioFormat(stream, mixer.channels[i].position, - mixer.outputSpec.format, copy_amt, 150); + mixer.outputSpec.format, copy_amt, SDL_MIX_MAXVOLUME); /* update buffer position in sound effect and the number of bytes left */ mixer.channels[i].position += copy_amt;