mirror of
https://github.com/perfect-dark-pc-port/perfect_dark.git
synced 2026-10-24 00:02:43 +02:00
Fix choppy audio at sub-60fps framerates
This commit is contained in:
1 parent
1439f8bbeb
commit
5b0874daef
1 file changed
+6
-2
+6
-2
@@ -235,9 +235,13 @@ void schedStartFrame(OSSched *sc)
|
||||
|
||||
void schedAudioFrame(OSSched *sc)
|
||||
{
|
||||
s32 i;
|
||||
|
||||
if (!g_SndDisabled) {
|
||||
amgrFrame();
|
||||
audioEndFrame();
|
||||
for (i = 0; i < g_Vars.diffframe60; i++) {
|
||||
amgrFrame();
|
||||
audioEndFrame();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user