diff options
author | superctr <themvrules@gmail.com> | 2018-08-19 10:02:46 +0200 |
---|---|---|
committer | superctr <themvrules@gmail.com> | 2018-08-19 10:02:46 +0200 |
commit | df9d7ef55a3938598014c6a1585bbce911088c78 (patch) | |
tree | e4d6e6a5d7b671e236c3417d36d0b5bb3495f941 /src/devices | |
parent | 8d61256930c15eee970773e782f9d47e36a2e404 (diff) |
taito_zm games: Better default Zoom/SPU balance
zsg2.cpp: Clamp audio output to 16-bits
Diffstat (limited to 'src/devices')
-rw-r--r-- | src/devices/sound/zsg2.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/devices/sound/zsg2.cpp b/src/devices/sound/zsg2.cpp index 5b81eb85c0e..962fc666bde 100644 --- a/src/devices/sound/zsg2.cpp +++ b/src/devices/sound/zsg2.cpp @@ -346,7 +346,7 @@ void zsg2_device::sound_stream_update(sound_stream &stream, stream_sample_t **in } for(int output=0; output<4; output++) - outputs[output][i] = mix[output]; + outputs[output][i] = std::min<int32_t>(std::max<int32_t>(mix[output], -32768), 32767); } m_sample_count++; |