summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/sound/beep.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/sound/beep.cpp')
-rw-r--r--src/devices/sound/beep.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/devices/sound/beep.cpp b/src/devices/sound/beep.cpp
index a9cfd6747cc..58096c4b561 100644
--- a/src/devices/sound/beep.cpp
+++ b/src/devices/sound/beep.cpp
@@ -83,9 +83,9 @@ void beep_device::sound_stream_update(sound_stream &stream, std::vector<read_str
}
/* fill in the sample */
- while (!buffer.done())
+ for (int sampindex = 0; sampindex < buffer.samples(); sampindex++)
{
- buffer.put(signal);
+ buffer.put(sampindex, signal);
incr -= clock;
while( incr < 0 )
{