Skip to content

Commit

Permalink
The volume was too high, clamp to SDL_MIX_MAXVOLUME
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Sep 22, 2017
1 parent 407e169 commit 28602b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Xcode-iOS/Demos/src/mixer.c
Expand Up @@ -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;
Expand Down

0 comments on commit 28602b1

Please sign in to comment.