mirror of
https://gitlab.com/drummyfish/anarch.git
synced 2024-11-28 11:52:15 -05:00
Fix audio latency
This commit is contained in:
parent
d3c4c0da74
commit
338b8c3795
@ -278,8 +278,9 @@ int main(int argc, char *argv[])
|
|||||||
audioSpec.freq = 8000;
|
audioSpec.freq = 8000;
|
||||||
audioSpec.format = AUDIO_U8;
|
audioSpec.format = AUDIO_U8;
|
||||||
audioSpec.channels = 1;
|
audioSpec.channels = 1;
|
||||||
|
audioSpec.samples = 128;
|
||||||
|
|
||||||
if (SDL_OpenAudio(&audioSpec, NULL) < 0)
|
if (SDL_OpenAudio(&audioSpec,0) < 0)
|
||||||
printf("SDL: could not initialize audio\n");
|
printf("SDL: could not initialize audio\n");
|
||||||
|
|
||||||
for (int i = 0; i < SFG_SFX_SAMPLE_COUNT; ++i)
|
for (int i = 0; i < SFG_SFX_SAMPLE_COUNT; ++i)
|
||||||
|
Loading…
Reference in New Issue
Block a user