From f307f9d5ad47a038fd5967b69bee2563ceb61a7f Mon Sep 17 00:00:00 2001 From: David Quintana Date: Thu, 2 May 2019 03:36:10 +0200 Subject: [PATCH] Simplify. Smoothing adds no value there. --- core/oslib/audiostream.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/core/oslib/audiostream.cpp b/core/oslib/audiostream.cpp index 5e6a981ed..1d6f4f079 100644 --- a/core/oslib/audiostream.cpp +++ b/core/oslib/audiostream.cpp @@ -141,7 +141,6 @@ u32 asRingFreeCount() } extern double mspdf; -double mspdf_smooth; void WriteSample(s16 r, s16 l) { const u32 ptr=(WritePtr+1)%RingBufferSampleCount; @@ -151,8 +150,7 @@ void WriteSample(s16 r, s16 l) if (WritePtr==(SAMPLE_COUNT-1)) { - mspdf_smooth = mspdf_smooth * 0.9 + mspdf * 0.1; - bool do_wait = settings.aica.LimitFPS && (mspdf_smooth <= 11); + bool do_wait = settings.aica.LimitFPS && (mspdf <= 11); PushAudio(RingBuffer,SAMPLE_COUNT, do_wait); }