Skip to content

Commit

Permalink
Increase audio buffer to 2048
Browse files Browse the repository at this point in the history
This eliminates the remaining stutters on RS90.
  • Loading branch information
mthuurne committed May 2, 2019
1 parent 172cbc4 commit 314e7ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion audio.c
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ static Mix_Chunk* LoadSFX(const char* Path)

bool InitializeAudio()
{
if (Mix_OpenAudio(44100, AUDIO_S16SYS, 2 /* stereo */, 1024 /* buffer size */))
if (Mix_OpenAudio(44100, AUDIO_S16SYS, 2 /* stereo */, 2048 /* buffer size */))
{
printf("warning: Mix_OpenAudio failed: %s\n", Mix_GetError());
printf("Sound will not be available.\n");
Expand Down

0 comments on commit 314e7ca

Please sign in to comment.