The volume was too high, clamp to SDL_MIX_MAXVOLUME
authorSam Lantinga <slouken@libsdl.org>
Fri, 22 Sep 2017 11:15:57 -0700
changeset 11524037bbd73cdf8
parent 11523 56e3705809ff
child 11525 8df7a59b5528
The volume was too high, clamp to SDL_MIX_MAXVOLUME
Xcode-iOS/Demos/src/mixer.c
     1.1 --- a/Xcode-iOS/Demos/src/mixer.c	Fri Sep 22 11:15:14 2017 -0700
     1.2 +++ b/Xcode-iOS/Demos/src/mixer.c	Fri Sep 22 11:15:57 2017 -0700
     1.3 @@ -250,7 +250,7 @@
     1.4  
     1.5          /* mix this sound effect with the output */
     1.6          SDL_MixAudioFormat(stream, mixer.channels[i].position,
     1.7 -                           mixer.outputSpec.format, copy_amt, 150);
     1.8 +                           mixer.outputSpec.format, copy_amt, SDL_MIX_MAXVOLUME);
     1.9  
    1.10          /* update buffer position in sound effect and the number of bytes left */
    1.11          mixer.channels[i].position += copy_amt;