Splitted default and music bus
This commit is contained in:
parent
cab8bd12f9
commit
bbda020a2d
5 changed files with 40 additions and 32 deletions
|
|
@ -58,6 +58,7 @@ public partial class AudioSequencer : Node
|
|||
channelProcess.Add(id, false);
|
||||
player.Name = id;
|
||||
player.MaxPolyphony = 5;
|
||||
player.Bus = "SFXBus";
|
||||
|
||||
player.Finished += () => { MarkChannel(id, false); };
|
||||
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@ public partial class AudioSlider : HSlider
|
|||
if (affects == TYPE.SFX)
|
||||
{
|
||||
Utility.SFX = Value;
|
||||
AudioServer.SetBusVolumeDb(0, Mathf.LinearToDb((float)Value));
|
||||
AudioServer.SetBusVolumeDb(2, Mathf.LinearToDb((float)Value));
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue