1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-16 19:19:09 +00:00

(svn r18820) -Codechange: [SDL] make the number of samples runtime configurable and increase the default slightly

This commit is contained in:
rubidium
2010-01-15 23:45:26 +00:00
parent 1a1797ec4d
commit f74ce1890e

@@ -35,7 +35,7 @@ const char *SoundDriver_SDL::Start(const char * const *parm)
spec.freq = GetDriverParamInt(parm, "hz", 44100);
spec.format = AUDIO_S16SYS;
spec.channels = 2;
spec.samples = 512;
spec.samples = GetDriverParamInt(parm, "samples", 1024);
spec.callback = fill_sound_buffer;
MxInitialize(spec.freq);
SDL_CALL SDL_OpenAudio(&spec, &spec);