diff options
author | Sandro Ronco <sandro.ronco@gmx.com> | 2017-02-18 19:42:04 +0100 |
---|---|---|
committer | Sandro Ronco <sandro.ronco@gmx.com> | 2017-02-18 19:42:04 +0100 |
commit | ad29db13432073b99f854280eccf3c63c245a7c1 (patch) | |
tree | d187d51feb4874578c277a3f0b255e6a1c745899 | |
parent | a133787963dab846cbe130d646d8c2ffc3690722 (diff) |
Fixed hr16 regression. (nw)
-rw-r--r-- | src/mame/audio/alesis.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mame/audio/alesis.cpp b/src/mame/audio/alesis.cpp index 77ff4ebe744..73659c37137 100644 --- a/src/mame/audio/alesis.cpp +++ b/src/mame/audio/alesis.cpp @@ -74,6 +74,7 @@ void alesis_dm3ag_device::device_reset() m_cur_sample = 0; m_shift = 0; memset(m_cmd, 0, sizeof(m_cmd)); + m_dac->write(0x8000); } //------------------------------------------------- @@ -116,7 +117,7 @@ void alesis_dm3ag_device::device_timer(emu_timer &timer, device_timer_id id, int sample = m_samples[m_cur_sample++]; } - m_dac->write(sample << m_shift); + m_dac->write(0x8000 - (sample << m_shift)); } } |