diff options
author | 2021-03-12 21:33:24 +0100 | |
---|---|---|
committer | 2021-03-12 21:35:02 +0100 | |
commit | cdb06b7a99f8717bdfee89148b57eea098a0713c (patch) | |
tree | dbd518bc2e3e973cdf8779580e7278a8fc55ec6f /src/devices/sound/awacs.cpp | |
parent | 83b3a2e0e5d6ac8bf1bc76cd7b3c98273dff4259 (diff) |
pmac6100: Move it to a new driver
Diffstat (limited to 'src/devices/sound/awacs.cpp')
-rw-r--r-- | src/devices/sound/awacs.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/devices/sound/awacs.cpp b/src/devices/sound/awacs.cpp index 72cf31d7589..69c93ad2d74 100644 --- a/src/devices/sound/awacs.cpp +++ b/src/devices/sound/awacs.cpp @@ -88,7 +88,7 @@ void awacs_device::device_timer(emu_timer &timer, device_timer_id tid, int param void awacs_device::sound_stream_update(sound_stream &stream, std::vector<read_stream_view> const &inputs, std::vector<write_stream_view> &outputs) { - int offset = (m_buffer_num == 0) ? m_dma_offset_0 : m_dma_offset_1; + // int offset = (m_buffer_num == 0) ? m_dma_offset_0 : m_dma_offset_1; auto &outL = outputs[0]; auto &outR = outputs[1]; @@ -97,8 +97,13 @@ void awacs_device::sound_stream_update(sound_stream &stream, std::vector<read_st { for (int i = 0; i < outL.samples(); i++) { +#if 0 outL.put_int(i, s16(m_dma_space->read_word(offset + m_play_ptr)), 32768); outR.put_int(i, s16(m_dma_space->read_word(offset + m_play_ptr + 2)), 32768); +#else + outL.put_int(i, 0, 32768); + outR.put_int(i, 0, 32768); +#endif m_play_ptr += 4; } |