mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-01 14:58:14 +00:00
Fix minor bug in StereoResampler debug display
This commit is contained in:
1 parent
774bea4f33
commit
2ba65c831a
1 file changed
+3
-1
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user