summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author angelosa <lordkale4@gmail.com>2025-10-30 19:45:44 +0100
committer angelosa <lordkale4@gmail.com>2025-10-30 19:45:51 +0100
commitbcd1fd6c9615c93b5d7579f6ac0376b1def51d6d (patch)
treeb323e5397fb9784657795cd851a8685d0a4ffd0a
parent426eafd4ab624efb2539b4f4b8c6865ecac72974 (diff)
sound/gt155.cpp, machine/gt913_snd.cpp: fix obvious left channel clamp typo
-rw-r--r--src/devices/machine/gt913_snd.cpp2
-rw-r--r--src/devices/sound/gt155.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/devices/machine/gt913_snd.cpp b/src/devices/machine/gt913_snd.cpp
index 1965b798432..96a31b6eba0 100644
--- a/src/devices/machine/gt913_snd.cpp
+++ b/src/devices/machine/gt913_snd.cpp
@@ -115,7 +115,7 @@ void gt913_sound_device::sound_stream_update(sound_stream& stream)
mix_sample(voice, left, right);
}
- stream.put_int_clamp(0, i, (left * m_gain) >> 27, 32678);
+ stream.put_int_clamp(0, i, (left * m_gain) >> 27, 32768);
stream.put_int_clamp(1, i, (right * m_gain) >> 27, 32768);
}
}
diff --git a/src/devices/sound/gt155.cpp b/src/devices/sound/gt155.cpp
index bdd71a074c5..371c96da4ce 100644
--- a/src/devices/sound/gt155.cpp
+++ b/src/devices/sound/gt155.cpp
@@ -108,7 +108,7 @@ void gt155_device::sound_stream_update(sound_stream& stream)
}
}
- stream.put_int_clamp(0, i, left >> 11, 32678);
+ stream.put_int_clamp(0, i, left >> 11, 32768);
stream.put_int_clamp(1, i, right >> 11, 32768);
}
}