Merge pull request #40 from Perkka2/master

Correcting EPSM Rhythm volume
This commit is contained in:
NovaSquirrel 2021-08-09 09:51:01 -04:00 committed by GitHub
commit c130c1df82
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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<int16_t> lastOutputs{ _lastOutputs, 2 };
ArrayInfo<int32_t> currentOutputs{ _currentOutputs, 2 };
ArrayInfo<int16_t> currentOutputs{ _currentOutputs, 2 };
ArrayInfo<InputBuffer> inputBuffer{ &_inputBuffer };
ValueInfo<ym3438_t> chip{ &_chip };
ValueInfo<double> 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];