aboutsummaryrefslogtreecommitdiff
path: root/src/SPU.h
diff options
context:
space:
mode:
authorArisotura <thetotalworm@gmail.com>2021-08-08 14:27:57 +0200
committerGitHub <noreply@github.com>2021-08-08 14:27:57 +0200
commit2df6b4fdc3439ea42b043d38f859efb5d4bd4466 (patch)
tree300323e14a13447039cb216dc8a097fe9f4bffd1 /src/SPU.h
parentb28a9e4d24b42a59de5e333c99aec6dcc30435f0 (diff)
Audio interpolation (#1176)
add audio interpolation (emulation improvement)
Diffstat (limited to 'src/SPU.h')
-rw-r--r--src/SPU.h4
1 files changed, 4 insertions, 0 deletions
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;