mirror of
https://github.com/Ale32bit/Capy64.git
synced 2025-01-18 18:46:43 +00:00
Remove debug log from Audio.GenerateWave
This commit is contained in:
parent
2f701a6338
commit
ee44873e07
1 changed files with 1 additions and 1 deletions
|
@ -72,7 +72,7 @@ public class Audio : IDisposable
|
||||||
Waveform.Noise => rng.NextDouble() * 2 - 1,
|
Waveform.Noise => rng.NextDouble() * 2 - 1,
|
||||||
_ => throw new NotImplementedException(),
|
_ => throw new NotImplementedException(),
|
||||||
};
|
};
|
||||||
Console.WriteLine(value);
|
|
||||||
value = Math.Clamp(value, -1, 1);
|
value = Math.Clamp(value, -1, 1);
|
||||||
var sample = (short)(value >= 0.0f ? value * short.MaxValue : value * short.MinValue * -1);
|
var sample = (short)(value >= 0.0f ? value * short.MaxValue : value * short.MinValue * -1);
|
||||||
if (!BitConverter.IsLittleEndian)
|
if (!BitConverter.IsLittleEndian)
|
||||||
|
|
Loading…
Reference in a new issue