[Audio] Fix typo in buffersize

It caused clicks in goldeneye / pd without +1.
This commit is contained in:
Frank-74 2018-12-04 06:32:31 +00:00 committed by GitHub
parent af6c354efc
commit 9936933f68
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -112,7 +112,7 @@ EXPORT void CALL AiDacrateChanged(int SystemType)
framerate = (framerate / 2); framerate = (framerate / 2);
} }
audio_clock = (video_clock / framerate); 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); g_SoundDriver->AI_SetFrequency(Frequency, BufferSize);
} }
} }