Fix minor bug in StereoResampler debug display

This commit is contained in:
Henrik Rydgård committed 2020-05-26 23:10:28 +02:00
1 parent 774bea4f33
commit 2ba65c831a
1 file changed
+3 -1
+3 -1
View File
@@ -179,7 +179,9 @@ unsigned int StereoResampler::Mix(short* samples, unsigned int numSamples, bool
u32 indexW = m_indexW.load();
const int INDEX_MASK = (m_maxBufsize * 2 - 1);
lastBufSize_ = (indexR - m_indexW) & INDEX_MASK;
// This is only for debug visualization, not used for anything.
lastBufSize_ = ((indexW - indexR) & INDEX_MASK) / 2;
// Drift prevention mechanism.
float numLeft = (float)(((indexW - indexR) & INDEX_MASK) / 2);