summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/audio
diff options
context:
space:
mode:
author Olivier Galibert <galibert@pobox.com>2018-05-11 01:12:28 +0900
committer Olivier Galibert <galibert@pobox.com>2018-05-11 18:23:04 +0900
commit4c24f25845f129f77829fc6d8e701a0e3762be80 (patch)
tree9bd0b9d5cf348f95ffa86911b71956fdd7f8b410 /src/mame/audio
parentde781d1d84e064956df88bfec929b573d4800789 (diff)
emumem: Rename direct_read_handler to memory_access_cache. Parametrize the template on more information (data width, endianness) to make it possible to turn it into an handler cache eventually, and not just a memory block cache. Make it capable of large and unaligned accesses. [O. Galibert]
Diffstat (limited to 'src/mame/audio')
-rw-r--r--src/mame/audio/turrett.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mame/audio/turrett.cpp b/src/mame/audio/turrett.cpp
index ce7991e755f..823e7ede161 100644
--- a/src/mame/audio/turrett.cpp
+++ b/src/mame/audio/turrett.cpp
@@ -44,7 +44,7 @@ device_memory_interface::space_config_vector turrett_device::memory_space_config
void turrett_device::device_start()
{
// Find our direct access
- m_direct = space().direct<0>();
+ m_cache = space().cache<1, 0, ENDIANNESS_LITTLE>();
// Create the sound stream
m_stream = machine().sound().stream_alloc(*this, 0, 2, 44100);
@@ -106,7 +106,7 @@ void turrett_device::sound_stream_update(sound_stream &stream, stream_sample_t *
for (int s = 0; s < samples; ++s)
{
- int16_t sample = m_direct->read_word(addr << 1);
+ int16_t sample = m_cache->read_word(addr << 1);
if ((uint16_t)sample == 0x8000)
{