From 9936933f6849dea47151334e5aa47b64357c217e Mon Sep 17 00:00:00 2001 From: Frank-74 Date: Tue, 4 Dec 2018 06:32:31 +0000 Subject: [PATCH] [Audio] Fix typo in buffersize It caused clicks in goldeneye / pd without +1. --- Source/Project64-audio/AudioMain.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Project64-audio/AudioMain.cpp b/Source/Project64-audio/AudioMain.cpp index 53bd31467..7bfb4036c 100644 --- a/Source/Project64-audio/AudioMain.cpp +++ b/Source/Project64-audio/AudioMain.cpp @@ -112,7 +112,7 @@ EXPORT void CALL AiDacrateChanged(int SystemType) framerate = (framerate / 2); } audio_clock = (video_clock / framerate); - BufferSize = (int32_t)(audio_clock / (g_Dacrate + 1)) & ~0x1; + BufferSize = (int32_t)(audio_clock / (g_Dacrate + 1)) + 1 & ~0x1; g_SoundDriver->AI_SetFrequency(Frequency, BufferSize); } }