The volume was too high, clamp to SDL_MIX_MAXVOLUME

This commit is contained in:
Sam Lantinga committed 2017-09-22 11:15:57 -07:00
1 parent 407e1693ae
commit 28602b1235
1 file changed
+1 -1
+1 -1
View File
@@ -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;