diff options
author | Wohlstand <admin@wohlnet.ru> | 2025-03-27 18:26:39 +0300 |
---|---|---|
committer | Wohlstand <admin@wohlnet.ru> | 2025-03-27 18:26:39 +0300 |
commit | 7dfbb005312fecaeb0bfa08175678ec1f4143165 (patch) | |
tree | d5d8c64cf035e97883ce9bb09618bab216bbc4c1 /src/chips/ymfm_opl2.cpp | |
parent | fda87042c28a70d7893da05219fdbe4fd9c1350d (diff) | |
download | libADLMIDI-7dfbb005312fecaeb0bfa08175678ec1f4143165.tar.gz libADLMIDI-7dfbb005312fecaeb0bfa08175678ec1f4143165.tar.bz2 libADLMIDI-7dfbb005312fecaeb0bfa08175678ec1f4143165.zip |
Chips: Don't divide OPL2 output by 2
Diffstat (limited to 'src/chips/ymfm_opl2.cpp')
-rw-r--r-- | src/chips/ymfm_opl2.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/chips/ymfm_opl2.cpp b/src/chips/ymfm_opl2.cpp index 5e8ea32..beb6c16 100644 --- a/src/chips/ymfm_opl2.cpp +++ b/src/chips/ymfm_opl2.cpp @@ -99,7 +99,7 @@ void YmFmOPL2::nativeGenerate(int16_t *frame) } chip_r->generate(&frames_i); - frame[0] = static_cast<int16_t>(ymfm::clamp(frames_i.data[0] / 2, -32768, 32767)); + frame[0] = static_cast<int16_t>(ymfm::clamp(frames_i.data[0], -32768, 32767)); frame[1] = frame[0]; } |