diff --git a/src/common/audio/music/i_music.cpp b/src/common/audio/music/i_music.cpp index 08b8fcfd7d..b73c630ca6 100644 --- a/src/common/audio/music/i_music.cpp +++ b/src/common/audio/music/i_music.cpp @@ -270,6 +270,22 @@ void I_SetMusicVolume (double factor) I_SetRelativeVolume((float)factor); } +//========================================================================== +// +// test a relative music volume +// +//========================================================================== + +CCMD(testmusicvol) +{ + if (argv.argc() > 1) + { + I_SetRelativeVolume((float)strtod(argv[1], nullptr)); + } + else + Printf("Current relative volume is %1.2f\n", relative_volume); +} + //========================================================================== // // STAT music