mirror of
https://github.com/hrydgard/ppsspp.git
synced 2024-11-23 13:30:02 +00:00
iOS: fix significant audio stutter.
This commit is contained in:
parent
f723abe68b
commit
aca5e8e42f
@ -273,5 +273,5 @@ int __AudioMix(short *outstereo, int numFrames)
|
||||
// DEBUG_LOG(HLE, "No underrun, mixed %i samples fine", numFrames);
|
||||
}
|
||||
section.unlock();
|
||||
return numFrames;
|
||||
return underrun >= 0 ? underrun : numFrames;
|
||||
}
|
||||
|
@ -133,7 +133,8 @@ namespace DSound
|
||||
{
|
||||
int numBytesRendered = 4 * (*callback)(realtimeBuffer,numBytesToRender>>2,16,44100,2);
|
||||
|
||||
writeDataToBuffer(lastPos,(char *)realtimeBuffer,numBytesRendered);
|
||||
if (numBytesRendered != 0)
|
||||
writeDataToBuffer(lastPos,(char *)realtimeBuffer,numBytesRendered);
|
||||
|
||||
currentPos = ModBufferSize(lastPos + numBytesRendered);
|
||||
totalRenderedBytes += numBytesRendered;
|
||||
|
Loading…
Reference in New Issue
Block a user