The volume was too high, clamp to SDL_MIX_MAXVOLUME
This commit is contained in:
parent
796d1f6645
commit
1a34539bdf
1 changed files with 1 additions and 1 deletions
|
@ -250,7 +250,7 @@ audioCallback(void *userdata, Uint8 * stream, int len)
|
||||||
|
|
||||||
/* mix this sound effect with the output */
|
/* mix this sound effect with the output */
|
||||||
SDL_MixAudioFormat(stream, mixer.channels[i].position,
|
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 */
|
/* update buffer position in sound effect and the number of bytes left */
|
||||||
mixer.channels[i].position += copy_amt;
|
mixer.channels[i].position += copy_amt;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue