From 2df6b4fdc3439ea42b043d38f859efb5d4bd4466 Mon Sep 17 00:00:00 2001 From: Arisotura Date: Sun, 8 Aug 2021 14:27:57 +0200 Subject: Audio interpolation (#1176) add audio interpolation (emulation improvement) --- src/SPU.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/SPU.h') diff --git a/src/SPU.h b/src/SPU.h index bbc48e5..055a766 100644 --- a/src/SPU.h +++ b/src/SPU.h @@ -31,6 +31,9 @@ void Stop(); void DoSavestate(Savestate* file); +// 0=none 1=linear 2=cosine 3=cubic +void SetInterpolation(int type); + void SetBias(u16 bias); void Mix(u32 dummy); @@ -73,6 +76,7 @@ public: bool KeyOn; u32 Timer; s32 Pos; + s16 PrevSample[3]; s16 CurSample; u16 NoiseVal; -- cgit v1.2.3