diff options
author | Sam Lantinga <slouken@libsdl.org> | 2017-09-22 11:15:57 -0700 |
---|---|---|
committer | Sam Lantinga <slouken@libsdl.org> | 2017-09-22 11:15:57 -0700 |
commit | 2cd74f864b71df5d50f6afba32424a3b4bbb9722 (patch) | |
tree | 3194089845780026716dab3428449f3b444d8d53 /Xcode-iOS | |
parent | 1cde3828576d960437e208265fcffa96c37db949 (diff) |
The volume was too high, clamp to SDL_MIX_MAXVOLUME
Diffstat (limited to 'Xcode-iOS')
-rw-r--r-- | Xcode-iOS/Demos/src/mixer.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |