mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-27 06:35:39 +00:00
Correct left/right volume for padded samples.
This commit is contained in:
parent
a0101c5d29
commit
48afab2685
@ -85,8 +85,8 @@ unsigned int CMixer::MixerFifo::Mix(short* samples, unsigned int numSamples, boo
|
|||||||
short s[2];
|
short s[2];
|
||||||
s[0] = Common::swap16(m_buffer[(indexR - 1) & INDEX_MASK]);
|
s[0] = Common::swap16(m_buffer[(indexR - 1) & INDEX_MASK]);
|
||||||
s[1] = Common::swap16(m_buffer[(indexR - 2) & INDEX_MASK]);
|
s[1] = Common::swap16(m_buffer[(indexR - 2) & INDEX_MASK]);
|
||||||
s[0] = (s[0] * lvolume) >> 8;
|
s[0] = (s[0] * rvolume) >> 8;
|
||||||
s[1] = (s[1] * rvolume) >> 8;
|
s[1] = (s[1] * lvolume) >> 8;
|
||||||
for (; currentSample < numSamples * 2; currentSample += 2)
|
for (; currentSample < numSamples * 2; currentSample += 2)
|
||||||
{
|
{
|
||||||
int sampleR = s[0] + samples[currentSample];
|
int sampleR = s[0] + samples[currentSample];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user