1
0
mirror of https://github.com/blupi-games/planetblupi synced 2024-12-30 10:15:36 +01:00

Fix sound lag on macOS

Reduce bytes by output sample to 1024.
This commit is contained in:
Mathieu Schroeter 2019-05-09 23:49:17 +02:00
parent e9a47b2dd2
commit 85d90c2872

View File

@ -123,7 +123,7 @@ bool
CSound::Create ()
{
if (
Mix_OpenAudio (44100, MIX_DEFAULT_FORMAT, MIX_DEFAULT_CHANNELS, 4096) == -1)
Mix_OpenAudio (44100, MIX_DEFAULT_FORMAT, MIX_DEFAULT_CHANNELS, 1024) == -1)
return false;
Mix_AllocateChannels (MAXSOUND);