From 36c1cba8a4c66c517af821abf68ebe58ff48a871 Mon Sep 17 00:00:00 2001 From: Perkka2 <36314461+Perkka2@users.noreply.github.com> Date: Mon, 9 Aug 2021 09:38:54 +0200 Subject: [PATCH] Correcting EPSM Rhythm volume Accidently commited wrong volume settings for rhythm --- Core/EPSMAudio.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Core/EPSMAudio.h b/Core/EPSMAudio.h index c4a0d843..9aff336e 100644 --- a/Core/EPSMAudio.h +++ b/Core/EPSMAudio.h @@ -17,7 +17,7 @@ private: ym3438_t _chip; int16_t _lastOutputs[2]; - int32_t _currentOutputs[2]; + int16_t _currentOutputs[2]; uint8_t writeValue; int16_t writeAddr; @@ -80,7 +80,7 @@ protected: EPSMSSGAudio::StreamState(saving); ArrayInfo lastOutputs{ _lastOutputs, 2 }; - ArrayInfo currentOutputs{ _currentOutputs, 2 }; + ArrayInfo currentOutputs{ _currentOutputs, 2 }; ArrayInfo inputBuffer{ &_inputBuffer }; ValueInfo chip{ &_chip }; ValueInfo clock { &_clock }; @@ -110,7 +110,7 @@ protected: for (uint8_t x = 0; x < 2; x++) { _currentOutputs[x] += samples[x]; - _currentOutputs[x] += samples[x+2]/2; + _currentOutputs[x] += samples[x+2]/8; } auto& input = _inputBuffer[cycle];