]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Update audioparams (#26387)
authormetalgearsloth <31366439+metalgearsloth@users.noreply.github.com>
Fri, 29 Mar 2024 05:55:05 +0000 (16:55 +1100)
committerGitHub <noreply@github.com>
Fri, 29 Mar 2024 05:55:05 +0000 (16:55 +1100)
Drops busname + attenuation.

Content.Client/Audio/AmbientSoundSystem.cs
Content.Client/Audio/ContentAudioSystem.LobbyMusic.cs
Content.Shared/Light/Components/SharedExpendableLightComponent.cs

index 9d30cabb1ecb6f41be614b1b23b4c6c6f49b7522..0206017baef85df0e28046b62b41e841a97c00bf 100644 (file)
@@ -50,7 +50,6 @@ public sealed class AmbientSoundSystem : SharedAmbientSoundSystem
     private static AudioParams _params = AudioParams.Default
         .WithVariation(0.01f)
         .WithLoop(true)
-        .WithAttenuation(Attenuation.LinearDistance)
         .WithMaxDistance(7f);
 
     /// <summary>
index 0fdcc7a86dde8d45def6cfb7f81c166eaac5e823..92c5b7a419153ba568c77a5b95ff156dab46b067 100644 (file)
@@ -23,8 +23,8 @@ public sealed partial class ContentAudioSystem
     [Dependency] private readonly IStateManager _stateManager = default!;
     [Dependency] private readonly IResourceCache _resourceCache = default!;
 
-    private readonly AudioParams _lobbySoundtrackParams = new(-5f, 1, "Master", 0, 0, 0, false, 0f);
-    private readonly AudioParams _roundEndSoundEffectParams = new(-5f, 1, "Master", 0, 0, 0, false, 0f);
+    private readonly AudioParams _lobbySoundtrackParams = new(-5f, 1, 0, 0, 0, false, 0f);
+    private readonly AudioParams _roundEndSoundEffectParams = new(-5f, 1, 0, 0, 0, false, 0f);
 
     /// <summary>
     /// EntityUid of lobby restart sound component.
index c802700b62cf58dc56240ca5e49a6f48eb3918bf..e40174ab78333c9fd90d9c3edf66ec8245f6b624 100644 (file)
@@ -7,7 +7,7 @@ namespace Content.Shared.Light.Components;
 [NetworkedComponent]
 public abstract partial class SharedExpendableLightComponent : Component
 {
-    public static readonly AudioParams LoopedSoundParams = new(0, 1, "Master", 62.5f, 1, 1, true, 0.3f);
+    public static readonly AudioParams LoopedSoundParams = new(0, 1, 62.5f, 1, 1, true, 0.3f);
 
     [ViewVariables(VVAccess.ReadOnly)]
     public ExpendableLightState CurrentState { get; set; }