Skip to content

Commit

Permalink
- pass master volume to ZMusic library on startup
Browse files Browse the repository at this point in the history
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 33fb2a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sound/backend/i_sound.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 33fb2a7

Please sign in to comment.