Skip to content

Commit

Permalink
reduce music volume a bit more, still too loud
Browse files Browse the repository at this point in the history
  • Loading branch information
rsn8887 committed Mar 6, 2019
1 parent 5947856 commit ae98314
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/music/libtimidity.cpp
Expand Up @@ -151,9 +151,9 @@ bool MusicDriver_LibTimidity::IsSongPlaying()

void MusicDriver_LibTimidity::SetVolume(byte vol)
{
/* libtimidity's default volume is 70, but that is already too loud.
/* libtimidity's default volume is 70, but that is much too loud.
* Set gain using OpenTTD's volume, as a number between 0
* and 40. */
_midi.gain = (40.0 * vol) / (128.0);
* and 20. */
_midi.gain = (20.0 * vol) / (128.0);
if (_midi.song != NULL) mid_song_set_volume(_midi.song, _midi.gain);
}

0 comments on commit ae98314

Please sign in to comment.