mirror of
https://github.com/holub/mame
synced 2025-04-21 16:01:56 +03:00
netlist_sound: Fix sound_assert in debug builds
This commit is contained in:
parent
6cfd257765
commit
ba6dd0d3f0
@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user