mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-28 00:33:34 +01:00
Audio: Correct protection against time skew.
This commit is contained in:
1 parent
e91b8af27a
commit
b1e31d89e1
2 files changed
+2
-2
No files matched your search
@@ -345,7 +345,7 @@ int BackgroundAudio::Play() {
|
||||
|
||||
double now = time_now_d();
|
||||
int sz = 44100 / 60;
|
||||
if (lastPlaybackTime_ > 0.0 && lastPlaybackTime_ >= now) {
|
||||
if (lastPlaybackTime_ > 0.0 && lastPlaybackTime_ <= now) {
|
||||
sz = (int)((now - lastPlaybackTime_) * 44100);
|
||||
}
|
||||
sz = std::min(BUFSIZE / 2, sz);
|
||||
|
||||
Reference in new issue
Block a user