PSP2: Fix audio crackling after fast forward

This commit is contained in:
Vicki Pfau 2018-09-25 11:16:30 -07:00
parent 776d8a7f71
commit 50622f9e55
2 changed files with 10 additions and 0 deletions

View File

@ -98,6 +98,9 @@ Misc:
- Core: Remove broken option for whether rewinding restores save games
- FFmpeg: Support lossless VP9 encoding
- mGUI: Add fast forward toggle
Changes from beta 1:
Bugfixes:
- PSP2: Fix audio crackling after fast forward
0.6 beta 1: (2018-09-24)
- Initial beta for 0.6

View File

@ -280,6 +280,13 @@ uint16_t mPSP2PollInput(struct mGUIRunner* runner) {
void mPSP2SetFrameLimiter(struct mGUIRunner* runner, bool limit) {
UNUSED(runner);
if (!frameLimiter && limit) {
MutexLock(&audioContext.mutex);
while (audioContext.samples) {
ConditionWait(&audioContext.cond, &audioContext.mutex);
}
MutexUnlock(&audioContext.mutex);
}
frameLimiter = limit;
}