mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-10 06:42:08 +00:00
. added SetMusicVolume script function.
This commit is contained in:
parent
02c3b3613f
commit
11bea8249a
2 changed files with 9 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -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();
|
||||
|
||||
|
|
Loading…
Reference in a new issue