mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-24 13:11:33 +00:00
- fixed: timidity_mastervolume didn't notify the song if the volume had to be clamped.
SVN r792 (trunk)
This commit is contained in:
parent
1e418576da
commit
9b6d764512
2 changed files with 3 additions and 1 deletions
|
@ -503,4 +503,6 @@ CCMD(testmusicvol)
|
||||||
relative_volume = (float)strtod(argv[1], NULL);
|
relative_volume = (float)strtod(argv[1], NULL);
|
||||||
snd_musicvolume.Callback();
|
snd_musicvolume.Callback();
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
Printf("Current relative volume is %1.2f\n", relative_volume);
|
||||||
}
|
}
|
||||||
|
|
|
@ -64,7 +64,7 @@ CUSTOM_CVAR (Float, timidity_mastervolume, 1.0f, CVAR_ARCHIVE|CVAR_GLOBALCONFIG)
|
||||||
self = 0.f;
|
self = 0.f;
|
||||||
else if (self > 4.f)
|
else if (self > 4.f)
|
||||||
self = 4.f;
|
self = 4.f;
|
||||||
else if (currSong != NULL)
|
if (currSong != NULL)
|
||||||
currSong->TimidityVolumeChanged();
|
currSong->TimidityVolumeChanged();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue