(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
1 changed files with 1 additions and 1 deletions

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