. added SetMusicVolume script function.

This commit is contained in:
Christoph Oelckers 2016-12-28 21:41:06 +01:00
parent 02c3b3613f
commit 11bea8249a
2 changed files with 9 additions and 0 deletions

View File

@ -680,6 +680,14 @@ void I_SetMusicVolume (float factor)
snd_musicvolume.Callback();
}
DEFINE_ACTION_FUNCTION(DObject, SetMusicVolume)
{
PARAM_PROLOGUE;
PARAM_FLOAT(vol);
I_SetMusicVolume((float)vol);
return 0;
}
//==========================================================================
//
// test a relative music volume

View File

@ -12,6 +12,7 @@ class Object native
native static bool S_ChangeMusic(String music_name, int order = 0, bool looping = true, bool force = false);
native static void C_MidPrint(string fontname, string textlabel, bool bold = false); // always uses the stringtable.
native static uint BAM(double angle);
native static void SetMusicVolume(float vol);
native Name GetClassName();