diff options
Diffstat (limited to 'src/devices/sound/awacs.cpp')
-rw-r--r-- | src/devices/sound/awacs.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/devices/sound/awacs.cpp b/src/devices/sound/awacs.cpp index 007217db048..19f734cd468 100644 --- a/src/devices/sound/awacs.cpp +++ b/src/devices/sound/awacs.cpp @@ -96,10 +96,10 @@ void awacs_device::sound_stream_update(sound_stream &stream, std::vector<read_st constexpr stream_buffer::sample_t sample_scale = 1.0 / 32768.0; if (m_playback_enable) { - while (!outL.done()) + for (int i = 0; i < outL.samples(); i++) { - outL.put(stream_buffer::sample_t(s16(m_dma_space->read_word(offset + m_play_ptr))) * sample_scale); - outR.put(stream_buffer::sample_t(s16(m_dma_space->read_word(offset + m_play_ptr + 2))) * sample_scale); + outL.put(i, stream_buffer::sample_t(s16(m_dma_space->read_word(offset + m_play_ptr))) * sample_scale); + outR.put(i, stream_buffer::sample_t(s16(m_dma_space->read_word(offset + m_play_ptr + 2))) * sample_scale); m_play_ptr += 4; } |