summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/sound/cdp1869.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/sound/cdp1869.cpp')
-rw-r--r--src/devices/sound/cdp1869.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/devices/sound/cdp1869.cpp b/src/devices/sound/cdp1869.cpp
index d4b789f3297..98580d7ae54 100644
--- a/src/devices/sound/cdp1869.cpp
+++ b/src/devices/sound/cdp1869.cpp
@@ -534,9 +534,9 @@ void cdp1869_device::sound_stream_update(sound_stream &stream, std::vector<read_
signal = stream_buffer::sample_t(m_toneamp) / 15.0;
}
- while (!buffer.done())
+ for (int sampindex = 0; sampindex < buffer.samples(); sampindex++)
{
- buffer.put(signal);
+ buffer.put(sampindex, signal);
incr -= frequency;
while( incr < 0 )
{