Skip to content

Commit

Permalink
- restore accidentally deleted 'testmusicvol' CCMD.
Browse files Browse the repository at this point in the history
  • Loading branch information
coelckers committed Mar 12, 2021
1 parent 3d55c76 commit a0cffca
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/common/audio/music/i_music.cpp
Expand Up @@ -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
Expand Down

0 comments on commit a0cffca

Please sign in to comment.