From 6c8a3069197febf4d9708e825476adfba6defd8a Mon Sep 17 00:00:00 2001 From: DJRobX Date: Mon, 5 Nov 2007 09:35:09 +0000 Subject: [PATCH] Fix small error in optimized libresample layer Enable optimizations in release mode git-svn-id: https://svn.code.sf.net/p/vbam/code/trunk@19 a31d4220-a93d-0410-bf67-fe4944624d44 --- VBA.vcproj | 20 +++++++++++++++----- src/snd_interp.cpp | 8 ++++---- 2 files changed, 19 insertions(+), 9 deletions(-) diff --git a/VBA.vcproj b/VBA.vcproj index 63b67a77..88c3a3c9 100644 --- a/VBA.vcproj +++ b/VBA.vcproj @@ -158,12 +158,13 @@ /> + + + filled) filled = 0; else filled -= count; } - T operator[] (int index) const + inline T operator[] (int index) const { index += ptr - filled; if (index < 0) index += buffer_size; @@ -459,7 +459,7 @@ public: in[used] = samples[used]; } - returned = resample_process(resampler, 32767 / lrate, in, count, 0, &used, &out, 1); + returned = resample_process(resampler, 32767. / lrate, in, count, 0, &used, &out, 1); if (used) { samples.erase(used);