mirror of
https://github.com/hrydgard/ppsspp.git
synced 2024-11-27 07:20:49 +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,6 +133,7 @@ namespace DSound
|
||||
{
|
||||
int numBytesRendered = 4 * (*callback)(realtimeBuffer,numBytesToRender>>2,16,44100,2);
|
||||
|
||||
if (numBytesRendered != 0)
|
||||
writeDataToBuffer(lastPos,(char *)realtimeBuffer,numBytesRendered);
|
||||
|
||||
currentPos = ModBufferSize(lastPos + numBytesRendered);
|
||||
|
Loading…
Reference in New Issue
Block a user