diff options
Diffstat (limited to 'src/devices/sound/okim6295.cpp')
-rw-r--r-- | src/devices/sound/okim6295.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/devices/sound/okim6295.cpp b/src/devices/sound/okim6295.cpp index a6acbe12e9b..4d304ef1721 100644 --- a/src/devices/sound/okim6295.cpp +++ b/src/devices/sound/okim6295.cpp @@ -183,6 +183,9 @@ void okim6295_device::sound_stream_update(sound_stream &stream, std::vector<read // iterate over voices and accumulate sample data for (auto & elem : m_voice) elem.generate_adpcm(*this, outputs[0]); + + for (int i = 0; i < outputs[0].samples(); i++) + outputs[0].put(i, std::clamp(outputs[0].getraw(i), -1.0f, 1.0f)); } |