summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/sound/bbd.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/sound/bbd.h')
-rw-r--r--src/devices/sound/bbd.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/devices/sound/bbd.h b/src/devices/sound/bbd.h
index b39e13e08cb..f9c84b8d6a6 100644
--- a/src/devices/sound/bbd.h
+++ b/src/devices/sound/bbd.h
@@ -36,7 +36,7 @@ protected:
protected:
// override to convert clock to sample rate
- stream_buffer::sample_t outputval(s32 index) const { return m_buffer[(m_curpos + Entries + index) % std::size(m_buffer)]; }
+ stream_buffer::sample_t outputval(s32 index) const { return m_buffer[(m_curpos - index) % std::size(m_buffer)]; }
virtual u32 sample_rate() const { return clock(); }
sound_stream * m_stream;