Skip to content
Permalink
Browse files

- 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
  • Loading branch information
alexey-lysiuk committed Nov 29, 2019
1 parent c74c38e commit 33fb2a7856bc52fb0e1c9d3407cc47fe3c263688
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/sound/backend/i_sound.cpp
@@ -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;

0 comments on commit 33fb2a7

Please sign in to comment.
You can’t perform that action at this time.