From 5b31b3371346a6a45165cce2a7842a3c0a808bb8 Mon Sep 17 00:00:00 2001 From: adelikat Date: Thu, 8 Dec 2016 20:06:25 -0600 Subject: [PATCH] Remove a now unused MaxVolume property from some sound provider classes --- BizHawk.Emulation.Common/Base Implementations/NullSound.cs | 1 - BizHawk.Emulation.Common/Sound/Utilities/BufferedAsync.cs | 2 -- BizHawk.Emulation.Common/Sound/Utilities/Metaspu.cs | 4 ---- BizHawk.Emulation.Cores/Consoles/Atari/2600/Tia/TIA.cs | 2 -- BizHawk.Emulation.Cores/Consoles/Intellivision/PSG.cs | 2 -- BizHawk.Emulation.Cores/Consoles/Nintendo/NES/NES.Core.cs | 2 -- 6 files changed, 13 deletions(-) diff --git a/BizHawk.Emulation.Common/Base Implementations/NullSound.cs b/BizHawk.Emulation.Common/Base Implementations/NullSound.cs index 689881d7e3..7b314c2728 100644 --- a/BizHawk.Emulation.Common/Base Implementations/NullSound.cs +++ b/BizHawk.Emulation.Common/Base Implementations/NullSound.cs @@ -6,6 +6,5 @@ public void GetSamples(short[] samples) { } public void DiscardSamples() { } - public int MaxVolume { get; set; } } } diff --git a/BizHawk.Emulation.Common/Sound/Utilities/BufferedAsync.cs b/BizHawk.Emulation.Common/Sound/Utilities/BufferedAsync.cs index ab1c427e0d..8e35254531 100644 --- a/BizHawk.Emulation.Common/Sound/Utilities/BufferedAsync.cs +++ b/BizHawk.Emulation.Common/Sound/Utilities/BufferedAsync.cs @@ -54,8 +54,6 @@ namespace BizHawk.Emulation.Common BaseSoundProvider.DiscardSamples(); } - public int MaxVolume { get; set; } - public void GetSamples(short[] samples) { int samplesToGenerate = SamplesInOneFrame; diff --git a/BizHawk.Emulation.Common/Sound/Utilities/Metaspu.cs b/BizHawk.Emulation.Common/Sound/Utilities/Metaspu.cs index 493a962f6b..70c8747b73 100644 --- a/BizHawk.Emulation.Common/Sound/Utilities/Metaspu.cs +++ b/BizHawk.Emulation.Common/Sound/Utilities/Metaspu.cs @@ -30,8 +30,6 @@ namespace BizHawk.Emulation.Common input.DiscardSamples(); buffer.clear(); } - - public int MaxVolume { get; set; } } public class MetaspuSoundProvider : ISoundProvider @@ -64,8 +62,6 @@ namespace BizHawk.Emulation.Common { buffer.clear(); } - - public int MaxVolume { get; set; } } public interface ISynchronizingAudioBuffer diff --git a/BizHawk.Emulation.Cores/Consoles/Atari/2600/Tia/TIA.cs b/BizHawk.Emulation.Cores/Consoles/Atari/2600/Tia/TIA.cs index 0a037618c9..95ffd34cd0 100644 --- a/BizHawk.Emulation.Cores/Consoles/Atari/2600/Tia/TIA.cs +++ b/BizHawk.Emulation.Cores/Consoles/Atari/2600/Tia/TIA.cs @@ -371,8 +371,6 @@ namespace BizHawk.Emulation.Cores.Atari.Atari2600 /// public Action FrameEndCallBack { get; set; } - public int MaxVolume { get; set; } - public int VirtualWidth { // TODO: PAL? diff --git a/BizHawk.Emulation.Cores/Consoles/Intellivision/PSG.cs b/BizHawk.Emulation.Cores/Consoles/Intellivision/PSG.cs index f9c2a4bb01..6631c9ee4a 100644 --- a/BizHawk.Emulation.Cores/Consoles/Intellivision/PSG.cs +++ b/BizHawk.Emulation.Cores/Consoles/Intellivision/PSG.cs @@ -9,8 +9,6 @@ namespace BizHawk.Emulation.Cores.Intellivision { public ushort[] Register = new ushort[16]; - public int MaxVolume { get; set; } - public void DiscardSamples() { diff --git a/BizHawk.Emulation.Cores/Consoles/Nintendo/NES/NES.Core.cs b/BizHawk.Emulation.Cores/Consoles/Nintendo/NES/NES.Core.cs index c1a9e96e7b..9779feb64c 100644 --- a/BizHawk.Emulation.Cores/Consoles/Nintendo/NES/NES.Core.cs +++ b/BizHawk.Emulation.Cores/Consoles/Nintendo/NES/NES.Core.cs @@ -148,8 +148,6 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES nes.apu.sampleclock = 0; } - public int MaxVolume { get; set; } - public void Dispose() { if (blip != null)