add SetMasteringVolume method to AudioDevice

pull/20/head
cosmonaut 2022-05-23 19:11:48 -07:00
parent e5c72c6f46
commit 4756fe2b14
1 changed files with 6 additions and 1 deletions

View File

@ -197,7 +197,12 @@ namespace MoonWorks.Audio
sendDesc[1].pOutputVoice = ReverbVoice;
}
public void Update()
public void SetMasteringVolume(float volume)
{
FAudio.FAudioVoice_SetVolume(MasteringVoice, volume, 0);
}
internal void Update()
{
for (var i = streamingSounds.Count - 1; i >= 0; i--)
{