From 28602b12357b983802ac0386185b3de4a208826a 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 81f0166f8..14945ad33 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;