Splitted default and music bus

This commit is contained in:
Rendo 2025-07-12 20:59:35 +05:00
commit bbda020a2d
5 changed files with 40 additions and 32 deletions

View file

@ -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); };

View file

@ -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
{