diff --git a/Assets/Scripts/GlobalGameManager.cs b/Assets/Scripts/GlobalGameManager.cs index 85ebaee0c..ddded770e 100644 --- a/Assets/Scripts/GlobalGameManager.cs +++ b/Assets/Scripts/GlobalGameManager.cs @@ -108,7 +108,6 @@ namespace HeavenStudio // ChangeAudioSettings(currentDspSize, currentSampleRate); AudioConfiguration config = AudioSettings.GetConfiguration(); - if (currentDspSize == config.dspBufferSize && currentSampleRate == config.sampleRate) return; config.dspBufferSize = currentDspSize; config.sampleRate = currentSampleRate; AudioSettings.Reset(config); diff --git a/Assets/Scripts/InputSystem/PlayerInput.cs b/Assets/Scripts/InputSystem/PlayerInput.cs index 4c4cc4719..f8668236c 100644 --- a/Assets/Scripts/InputSystem/PlayerInput.cs +++ b/Assets/Scripts/InputSystem/PlayerInput.cs @@ -158,7 +158,6 @@ namespace HeavenStudio foreach (InputController i in inputDevices) { if (i == null) continue; - Debug.Log($"Polling controller {i.GetDeviceName()} (frame {Time.frameCount})"); i.UpdateState(); } } diff --git a/Assets/Scripts/Util/SavWav.cs b/Assets/Scripts/Util/SavWav.cs index 3ea7d8e1e..e3167257b 100644 --- a/Assets/Scripts/Util/SavWav.cs +++ b/Assets/Scripts/Util/SavWav.cs @@ -67,6 +67,8 @@ public static class SavWav { var wav = GetWav(clip, out var length, trim); writer.Write(wav, 0, (int)length); + fileStream.Close(); + fileStream.Dispose(); } }