diff options
author | Arisotura <thetotalworm@gmail.com> | 2020-08-19 04:18:17 +0200 |
---|---|---|
committer | Arisotura <thetotalworm@gmail.com> | 2020-08-19 04:18:17 +0200 |
commit | a32d997e1c341085da4ccfe5ae4c812f64681f10 (patch) | |
tree | ed0e3346645efac22b940360aedd6eeb5386b1f0 | |
parent | 6f4e7c60b29242a692f2595cd319d285792a3c3d (diff) |
SPU: don't process channels with len<4
-rw-r--r-- | src/SPU.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/SPU.cpp b/src/SPU.cpp index cd5c5b8..5b74bda 100644 --- a/src/SPU.cpp +++ b/src/SPU.cpp @@ -420,6 +420,8 @@ void Channel::Run(s32* buf, u32 samples) { if (!(Cnt & (1<<31))) return; + if ((type < 3) && ((Length+LoopPos) < 16)) return; + if (KeyOn) { Start(); |