From e9bdd356da4c9e7cc6742884cb9872b777f1c7f1 Mon Sep 17 00:00:00 2001 From: cam900 Date: Sat, 17 Sep 2022 13:02:10 +0900 Subject: [PATCH] Sync with master --- extern/vgsound_emu-modified/vgsound_emu/src/es550x/es5505.hpp | 4 ++-- extern/vgsound_emu-modified/vgsound_emu/src/es550x/es5506.hpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/extern/vgsound_emu-modified/vgsound_emu/src/es550x/es5505.hpp b/extern/vgsound_emu-modified/vgsound_emu/src/es550x/es5505.hpp index 34782f104..4c8454c88 100644 --- a/extern/vgsound_emu-modified/vgsound_emu/src/es550x/es5505.hpp +++ b/extern/vgsound_emu-modified/vgsound_emu/src/es550x/es5505.hpp @@ -35,7 +35,7 @@ class es5505_core : public es550x_shared_core inline s32 clamp16(s32 in) { return clamp(in, -0x8000, 0x7fff); } - inline void clamp16(output_t src) + inline void clamp16(output_t &src) { m_left = clamp16(src.left()); m_right = clamp16(src.right()); @@ -76,7 +76,7 @@ class es5505_core : public es550x_shared_core return *this; } - output_t &operator=(output_t src) + output_t &operator=(output_t &src) { clamp16(src); return *this; diff --git a/extern/vgsound_emu-modified/vgsound_emu/src/es550x/es5506.hpp b/extern/vgsound_emu-modified/vgsound_emu/src/es550x/es5506.hpp index 84a6077de..53713cfbe 100644 --- a/extern/vgsound_emu-modified/vgsound_emu/src/es550x/es5506.hpp +++ b/extern/vgsound_emu-modified/vgsound_emu/src/es550x/es5506.hpp @@ -35,7 +35,7 @@ class es5506_core : public es550x_shared_core inline s32 clamp20(s32 in) { return clamp(in, -0x80000, 0x7ffff); } - inline void clamp20(output_t src) + inline void clamp20(output_t &src) { m_left = clamp20(src.left()); m_right = clamp20(src.right()); @@ -76,7 +76,7 @@ class es5506_core : public es550x_shared_core return *this; } - output_t &operator=(output_t src) + output_t &operator=(output_t &src) { clamp20(src); return *this;