summaryrefslogtreecommitdiffstats
path: root/src/mame/audio/turrett.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/audio/turrett.cpp')
-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 823e7ede161..34b0866399e 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_cache = space().cache<1, 0, ENDIANNESS_LITTLE>();
+ space().cache(m_cache);
// 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_cache->read_word(addr << 1);
+ int16_t sample = m_cache.read_word(addr << 1);
if ((uint16_t)sample == 0x8000)
{