Skip to content

Commit

Permalink
music_modplug.c (MODPLUG_SetVolume): revert behavior change from comm…
Browse files Browse the repository at this point in the history
…it 9781cbae

will apply it in next commit, so that it shows up in logs.
  • Loading branch information
sezero committed Nov 18, 2019
1 parent d5505b3 commit 49c2262
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion music_modplug.c
Expand Up @@ -202,7 +202,7 @@ void *MODPLUG_CreateFromRW(SDL_RWops *src, int freesrc)
static void MODPLUG_SetVolume(void *context, int volume)
{
MODPLUG_Music *music = (MODPLUG_Music *)context;
modplug.ModPlug_SetMasterVolume(music->file, (unsigned int)volume * 2); /* 0-512, reduced to 0-256 to prevent clipping */
modplug.ModPlug_SetMasterVolume(music->file, (unsigned int)volume * 4);
}

/* Start playback of a given modplug stream */
Expand Down

0 comments on commit 49c2262

Please sign in to comment.