Sync with master

This commit is contained in:
cam900 2022-09-17 12:55:05 +09:00
parent c981319295
commit 4eaf5ce9a6
2 changed files with 3 additions and 3 deletions

View File

@ -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();

View File

@ -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;