From d320b5057d6618bd8e763bf1557edc701a21d3dc Mon Sep 17 00:00:00 2001 From: adelikat Date: Thu, 27 Apr 2017 12:53:20 -0500 Subject: [PATCH] Emulation.Common - small nitpicks --- .../Base Implementations/MemoryDomainList.cs | 1 + BizHawk.Emulation.Common/BizInvoke/BizInvoker.cs | 1 + .../Sound/Utilities/ISynchronizingAudioBuffer.cs | 4 ++-- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/BizHawk.Emulation.Common/Base Implementations/MemoryDomainList.cs b/BizHawk.Emulation.Common/Base Implementations/MemoryDomainList.cs index 8fcc1414e9..dfb67ec775 100644 --- a/BizHawk.Emulation.Common/Base Implementations/MemoryDomainList.cs +++ b/BizHawk.Emulation.Common/Base Implementations/MemoryDomainList.cs @@ -110,6 +110,7 @@ namespace BizHawk.Emulation.Common /// /// big hacks /// + /// The memory domain type to merge private static void TryMerge(MemoryDomain dest, MemoryDomain src, Action func) where T : MemoryDomain { diff --git a/BizHawk.Emulation.Common/BizInvoke/BizInvoker.cs b/BizHawk.Emulation.Common/BizInvoke/BizInvoker.cs index 36b3bf03e9..46c9affc04 100644 --- a/BizHawk.Emulation.Common/BizInvoke/BizInvoker.cs +++ b/BizHawk.Emulation.Common/BizInvoke/BizInvoker.cs @@ -58,6 +58,7 @@ namespace BizHawk.Emulation.Common.BizInvoke /// /// get an implementation proxy for an interop class /// + /// The class type that represents the DLL public static T GetInvoker(IImportResolver dll) where T : class { diff --git a/BizHawk.Emulation.Common/Sound/Utilities/ISynchronizingAudioBuffer.cs b/BizHawk.Emulation.Common/Sound/Utilities/ISynchronizingAudioBuffer.cs index 7df1a7c3a6..28558763d5 100644 --- a/BizHawk.Emulation.Common/Sound/Utilities/ISynchronizingAudioBuffer.cs +++ b/BizHawk.Emulation.Common/Sound/Utilities/ISynchronizingAudioBuffer.cs @@ -242,8 +242,8 @@ namespace BizHawk.Emulation.Common int outNum = end - cur; int denom = end - start; - int lrv = ((int)lhs.L * outNum + (int)rhs.L * inNum) / denom; - int rrv = ((int)lhs.R * outNum + (int)rhs.R * inNum) / denom; + int lrv = ((lhs.L * outNum) + (rhs.L * inNum)) / denom; + int rrv = ((lhs.R * outNum) + (rhs.R * inNum)) / denom; return new Ssamp((short)lrv, (short)rrv); }