diff options
Diffstat (limited to 'src/devices/sound/okim6376.cpp')
-rw-r--r-- | src/devices/sound/okim6376.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/devices/sound/okim6376.cpp b/src/devices/sound/okim6376.cpp index d7cd143e003..997b3e8b13f 100644 --- a/src/devices/sound/okim6376.cpp +++ b/src/devices/sound/okim6376.cpp @@ -615,4 +615,7 @@ void okim6376_device::sound_stream_update(sound_stream &stream, std::vector<read sampindex += samples; } } + + for (int i = 0; i < outputs[0].samples(); i++) + outputs[0].put(i, std::clamp(outputs[0].getraw(i), -1.0f, 1.0f)); } |