mirror of https://github.com/mgba-emu/mgba.git
PSP2: Fix audio crackling after fast forward
This commit is contained in:
parent
776d8a7f71
commit
50622f9e55
3
CHANGES
3
CHANGES
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue