first commit
This commit is contained in:
21
NitroxClient/GameLogic/FMOD/FMODSoundSuppressor.cs
Normal file
21
NitroxClient/GameLogic/FMOD/FMODSoundSuppressor.cs
Normal file
@@ -0,0 +1,21 @@
|
||||
using System;
|
||||
|
||||
namespace NitroxClient.GameLogic.FMOD;
|
||||
|
||||
/// <summary>
|
||||
/// Suppresses sounds played by base Subnautica, but not by Nitrox
|
||||
/// </summary>
|
||||
public readonly struct FMODSoundSuppressor : IDisposable
|
||||
{
|
||||
public static bool SuppressFMODEvents { get; private set; }
|
||||
|
||||
public FMODSoundSuppressor()
|
||||
{
|
||||
SuppressFMODEvents = true;
|
||||
}
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
SuppressFMODEvents = false;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user