diff options
| author | 2020-09-17 01:24:17 -0700 | |
|---|---|---|
| committer | 2020-09-17 01:24:17 -0700 | |
| commit | 8d7d01caef380b119fbd8653fa5ad23e0d592564 (patch) | |
| tree | 69ad747e9a42081425070a010fff86688bf67b54 /src/devices/machine/netlist.cpp | |
| parent | dc0ede3c90717ed25de0695c555b861f06344f18 (diff) | |
Revert "sound: Improved view interfaces to match usage patterns"
This reverts commit dc0ede3c90717ed25de0695c555b861f06344f18.
Diffstat (limited to 'src/devices/machine/netlist.cpp')
| -rw-r--r-- | src/devices/machine/netlist.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/devices/machine/netlist.cpp b/src/devices/machine/netlist.cpp index 06e574890d2..988c21c33e1 100644 --- a/src/devices/machine/netlist.cpp +++ b/src/devices/machine/netlist.cpp @@ -825,10 +825,10 @@ void netlist_mame_stream_output_device::sound_update_fill(write_stream_view &tar if (target.samples() < m_buffer.size()) osd_printf_warning("sound %s: samples %d less bufsize %d\n", name(), target.samples(), m_buffer.size()); - int sampindex = 0; - while (!target.done() && sampindex < m_buffer.size()) - target.put(m_buffer[sampindex++]); - target.fill(m_cur); + int sampindex; + for (sampindex = 0; sampindex < m_buffer.size(); sampindex++) + target.put(sampindex, m_buffer[sampindex]); + target.fill(m_cur, sampindex); } |
