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:
parent
e9a47b2dd2
commit
85d90c2872
@ -123,7 +123,7 @@ bool
|
|||||||
CSound::Create ()
|
CSound::Create ()
|
||||||
{
|
{
|
||||||
if (
|
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;
|
return false;
|
||||||
|
|
||||||
Mix_AllocateChannels (MAXSOUND);
|
Mix_AllocateChannels (MAXSOUND);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user