- pass master volume to ZMusic library on startup

MIDI devices that don't output music through the sound system (like WinMM) ignored master volume setting

https://forum.zdoom.org/viewtopic.php?t=66510
This commit is contained in:
alexey.lysiuk 2019-11-29 11:13:03 +02:00
parent c74c38eef7
commit 33fb2a7856

View file

@ -87,7 +87,7 @@ void I_CloseSound ();
// Maximum volume of all audio
//==========================================================================
CUSTOM_CVAR(Float, snd_mastervolume, 1.f, CVAR_ARCHIVE | CVAR_GLOBALCONFIG | CVAR_NOINITCALL)
CUSTOM_CVAR(Float, snd_mastervolume, 1.f, CVAR_ARCHIVE | CVAR_GLOBALCONFIG)
{
if (self < 0.f)
self = 0.f;