summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/audio/cps3.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/audio/cps3.cpp')
-rw-r--r--src/mame/audio/cps3.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/mame/audio/cps3.cpp b/src/mame/audio/cps3.cpp
index bbefabf4d50..27a1be1c7ca 100644
--- a/src/mame/audio/cps3.cpp
+++ b/src/mame/audio/cps3.cpp
@@ -135,6 +135,13 @@ void cps3_sound_device::sound_stream_update(sound_stream &stream, std::vector<re
vptr->frac = frac;
}
}
+
+ // clamp the output; unknown what the real chip does
+ for (int sampindex = 0; sampindex < outputs[0].samples(); sampindex++)
+ {
+ outputs[0].put_clamp(sampindex, outputs[0].getraw(sampindex));
+ outputs[1].put_clamp(sampindex, outputs[1].getraw(sampindex));
+ }
}