From ee44873e07b4705dfedcc0f06a0088387a29185d Mon Sep 17 00:00:00 2001 From: Alessandro Proto Date: Thu, 16 Feb 2023 16:11:58 +0100 Subject: [PATCH] Remove debug log from Audio.GenerateWave --- Capy64/Core/Audio.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Capy64/Core/Audio.cs b/Capy64/Core/Audio.cs index 10c358a..f9df6f2 100644 --- a/Capy64/Core/Audio.cs +++ b/Capy64/Core/Audio.cs @@ -72,7 +72,7 @@ public class Audio : IDisposable Waveform.Noise => rng.NextDouble() * 2 - 1, _ => throw new NotImplementedException(), }; - Console.WriteLine(value); + value = Math.Clamp(value, -1, 1); var sample = (short)(value >= 0.0f ? value * short.MaxValue : value * short.MinValue * -1); if (!BitConverter.IsLittleEndian)