summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/sound/cdp1863.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/sound/cdp1863.cpp')
-rw-r--r--src/devices/sound/cdp1863.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/devices/sound/cdp1863.cpp b/src/devices/sound/cdp1863.cpp
index fd84ff0cd75..984a306b28a 100644
--- a/src/devices/sound/cdp1863.cpp
+++ b/src/devices/sound/cdp1863.cpp
@@ -114,9 +114,9 @@ void cdp1863_device::sound_stream_update(sound_stream &stream, std::vector<read_
signal = 1.0;
}
- while (!buffer.done())
+ for (int sampindex = 0; sampindex < buffer.samples(); sampindex++)
{
- buffer.put(signal);
+ buffer.put(sampindex, signal);
incr -= frequency;
while( incr < 0 )
{