diff options
Diffstat (limited to 'src/devices/imagedev/floppy.cpp')
| -rw-r--r-- | src/devices/imagedev/floppy.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/devices/imagedev/floppy.cpp b/src/devices/imagedev/floppy.cpp index 00614095261..ed77c9080e3 100644 --- a/src/devices/imagedev/floppy.cpp +++ b/src/devices/imagedev/floppy.cpp @@ -1981,7 +1981,8 @@ void floppy_sound_device::sound_stream_update(sound_stream &stream) sampleend = m_sample[m_step_sample-1].data.size(); // Mix it into the stream value - out += m_sample[m_step_sample-1].data[m_step_samplepos++]; + if (m_step_samplepos < sampleend) + out += m_sample[m_step_sample-1].data[m_step_samplepos++]; if (m_step_samplepos >= sampleend) { // Step sample done |
