netlist_sound: Fix sound_assert in debug builds

This commit is contained in:
AJR 2021-06-07 15:13:16 -04:00
parent 6cfd257765
commit ba6dd0d3f0

View File

@ -828,7 +828,8 @@ void netlist_mame_stream_output_device::sound_update_fill(write_stream_view &tar
int sampindex;
for (sampindex = 0; sampindex < m_buffer.size(); sampindex++)
target.put(sampindex, m_buffer[sampindex]);
target.fill(m_cur, sampindex);
if (sampindex < target.samples())
target.fill(m_cur, sampindex);
}