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];