diff --git a/src/BizHawk.Emulation.Common/Sound/SDLResampler.cs b/src/BizHawk.Emulation.Common/Sound/SDLResampler.cs index 0f1a9d3a3a..2e1f23db5b 100644 --- a/src/BizHawk.Emulation.Common/Sound/SDLResampler.cs +++ b/src/BizHawk.Emulation.Common/Sound/SDLResampler.cs @@ -81,7 +81,7 @@ namespace BizHawk.Emulation.Common /// number of sample pairs public unsafe void EnqueueSamples(short[] userbuf, int nsamp) { - if (nsamp * 2 < userbuf.Length) + if (userbuf.Length < nsamp * 2) { throw new("User buffer contained less than nsamp * 2 shorts!"); }