summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/sound/votrax.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/sound/votrax.cpp')
-rw-r--r--src/devices/sound/votrax.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/devices/sound/votrax.cpp b/src/devices/sound/votrax.cpp
index 000a568d2a3..d8f98bb65cb 100644
--- a/src/devices/sound/votrax.cpp
+++ b/src/devices/sound/votrax.cpp
@@ -133,11 +133,11 @@ void votrax_sc01_device::inflection_w(uint8_t data)
void votrax_sc01_device::sound_stream_update(sound_stream &stream, std::vector<read_stream_view> const &inputs, std::vector<write_stream_view> &outputs)
{
- for(int i=0; i<outputs[0].samples(); i++) {
+ while (!outputs[0].done()) {
m_sample_count++;
if(m_sample_count & 1)
chip_update();
- outputs[0].put(i, analog_calc());
+ outputs[0].put(analog_calc());
}
}