diff options
Diffstat (limited to 'src/devices/sound/beep.cpp')
-rw-r--r-- | src/devices/sound/beep.cpp | 4 |
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 ) { |