diff options
author | cam900 <dbtlrchl@naver.com> | 2018-05-11 18:59:53 +0900 |
---|---|---|
committer | Vas Crabb <cuavas@users.noreply.github.com> | 2018-05-11 21:51:26 +1000 |
commit | 36946bb332ad3649c4fe14e11218237b18dbed3f (patch) | |
tree | 44c0c9759e3bd7edf0097999cda32a393bd8cebd /src/devices/sound | |
parent | 74301434ae361351b62e4a4b5dcde53455c8d27e (diff) |
rf5c68.cpp : Sync to current commit
Diffstat (limited to 'src/devices/sound')
-rw-r--r-- | src/devices/sound/rf5c68.cpp | 8 | ||||
-rw-r--r-- | src/devices/sound/rf5c68.h | 14 |
2 files changed, 11 insertions, 11 deletions
diff --git a/src/devices/sound/rf5c68.cpp b/src/devices/sound/rf5c68.cpp index 117cf34fe5f..1509ab8d8b8 100644 --- a/src/devices/sound/rf5c68.cpp +++ b/src/devices/sound/rf5c68.cpp @@ -44,7 +44,7 @@ void rf5c68_device::device_start() { m_data = &space(0); // Find our direct access - m_direct = space().direct<0>(); + m_cache = space().cache<0, 0, ENDIANNESS_LITTLE>(); m_sample_end_cb.bind_relative_to(*owner()); /* allocate the stream */ @@ -114,11 +114,11 @@ void rf5c68_device::sound_stream_update(sound_stream &stream, stream_sample_t ** } /* fetch the sample and handle looping */ - sample = m_direct->read_byte((chan.addr >> 11) & 0xffff); + sample = m_cache->read_byte((chan.addr >> 11) & 0xffff); if (sample == 0xff) { chan.addr = chan.loopst << 11; - sample = m_direct->read_byte((chan.addr >> 11) & 0xffff); + sample = m_cache->read_byte((chan.addr >> 11) & 0xffff); /* if we loop to a loop point, we're effectively dead */ if (sample == 0xff) @@ -243,7 +243,7 @@ WRITE8_MEMBER( rf5c68_device::rf5c68_w ) READ8_MEMBER( rf5c68_device::rf5c68_mem_r ) { - return m_direct->read_byte(m_wbank | offset); + return m_cache->read_byte(m_wbank | offset); } diff --git a/src/devices/sound/rf5c68.h b/src/devices/sound/rf5c68.h index ca530a8b1b6..f0c202e0e04 100644 --- a/src/devices/sound/rf5c68.h +++ b/src/devices/sound/rf5c68.h @@ -70,13 +70,13 @@ private: uint16_t loopst = 0; }; - address_space *m_data; - direct_read_data<0> *m_direct; - sound_stream* m_stream; - pcm_channel m_chan[NUM_CHANNELS]; - uint8_t m_cbank; - uint16_t m_wbank; - uint8_t m_enable; + address_space *m_data; + memory_access_cache<0, 0, ENDIANNESS_LITTLE> *m_cache; + sound_stream* m_stream; + pcm_channel m_chan[NUM_CHANNELS]; + uint8_t m_cbank; + uint16_t m_wbank; + uint8_t m_enable; sample_end_cb_delegate m_sample_end_cb; }; |