mirror of
https://github.com/Relintai/sdl2_frt.git
synced 2024-11-21 20:47:19 +01:00
The volume was too high, clamp to SDL_MIX_MAXVOLUME
This commit is contained in:
parent
407e1693ae
commit
28602b1235
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user