diff options
Diffstat (limited to 'src/mame/audio/hyprolyb.cpp')
-rw-r--r-- | src/mame/audio/hyprolyb.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mame/audio/hyprolyb.cpp b/src/mame/audio/hyprolyb.cpp index c99d1ec05eb..4d4dc9f2365 100644 --- a/src/mame/audio/hyprolyb.cpp +++ b/src/mame/audio/hyprolyb.cpp @@ -9,7 +9,9 @@ DEFINE_DEVICE_TYPE(HYPROLYB_ADPCM, hyprolyb_adpcm_device, "hyprolyb_adpcm", "Hyp hyprolyb_adpcm_device::hyprolyb_adpcm_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock) : device_t(mconfig, HYPROLYB_ADPCM, tag, owner, clock) , device_sound_interface(mconfig, *this) + , m_audiocpu(*this, ":audiocpu") , m_soundlatch2(*this, ":soundlatch2") + , m_msm(*this, ":msm") , m_adpcm_ready(0) , m_adpcm_busy(0) , m_vck_ready(0) @@ -23,8 +25,6 @@ hyprolyb_adpcm_device::hyprolyb_adpcm_device(const machine_config &mconfig, cons void hyprolyb_adpcm_device::device_start() { - m_space = &machine().device<cpu_device>("audiocpu")->space(AS_PROGRAM); - m_msm = machine().device<msm5205_device>("msm"); save_item(NAME(m_adpcm_ready)); // only bootlegs save_item(NAME(m_adpcm_busy)); save_item(NAME(m_vck_ready)); @@ -43,7 +43,7 @@ void hyprolyb_adpcm_device::device_reset() WRITE8_MEMBER( hyprolyb_adpcm_device::write ) { - m_soundlatch2->write(*m_space, offset, data); + m_soundlatch2->write(m_audiocpu->space(AS_PROGRAM), offset, data); m_adpcm_ready = 0x80; } @@ -73,7 +73,7 @@ READ8_MEMBER( hyprolyb_adpcm_device::ready_r ) READ8_MEMBER( hyprolyb_adpcm_device::data_r ) { m_adpcm_ready = 0x00; - return m_soundlatch2->read(*m_space, offset); + return m_soundlatch2->read(m_audiocpu->space(AS_PROGRAM), offset); } void hyprolyb_adpcm_device::vck_callback( int st ) |