(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 f415917c40
commit d017ada3a3

View File

@@ -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);