From 4eaf5ce9a6a74c8f2a59ccfc4980f47a7ff74ea8 Mon Sep 17 00:00:00 2001 From: cam900 Date: Sat, 17 Sep 2022 12:55:05 +0900 Subject: [PATCH] Sync with master --- extern/vgsound_emu-modified/vgsound_emu/src/core/vox/vox.cpp | 2 +- extern/vgsound_emu-modified/vgsound_emu/src/core/vox/vox.hpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/extern/vgsound_emu-modified/vgsound_emu/src/core/vox/vox.cpp b/extern/vgsound_emu-modified/vgsound_emu/src/core/vox/vox.cpp index 0eb97ab00..ec16ca2b0 100644 --- a/extern/vgsound_emu-modified/vgsound_emu/src/core/vox/vox.cpp +++ b/extern/vgsound_emu-modified/vgsound_emu/src/core/vox/vox.cpp @@ -16,7 +16,7 @@ void vox_core::vox_decoder_t::decoder_state_t::reset() } // copy from source -void vox_core::vox_decoder_t::decoder_state_t::copy_state(decoder_state_t src) +void vox_core::vox_decoder_t::decoder_state_t::copy_state(decoder_state_t &src) { m_index = src.index(); m_step = src.step(); diff --git a/extern/vgsound_emu-modified/vgsound_emu/src/core/vox/vox.hpp b/extern/vgsound_emu-modified/vgsound_emu/src/core/vox/vox.hpp index 167d0fedd..ead2ca753 100644 --- a/extern/vgsound_emu-modified/vgsound_emu/src/core/vox/vox.hpp +++ b/extern/vgsound_emu-modified/vgsound_emu/src/core/vox/vox.hpp @@ -40,7 +40,7 @@ class vox_core : public vgsound_emu_core s32 step() { return m_step; } - decoder_state_t &operator=(decoder_state_t src) + decoder_state_t &operator=(decoder_state_t &src) { copy_state(src); return *this; @@ -49,7 +49,7 @@ class vox_core : public vgsound_emu_core private: const bool m_wraparound = false; // wraparound or clamp? - void copy_state(decoder_state_t src); + void copy_state(decoder_state_t &src); vox_core &m_vox; s8 m_index = 0;