From f74ce1890e9d126dd6b9110cd120cda8fae55271 Mon Sep 17 00:00:00 2001 From: rubidium Date: Fri, 15 Jan 2010 23:45:26 +0000 Subject: (svn r18820) -Codechange: [SDL] make the number of samples runtime configurable and increase the default slightly --- src/sound/sdl_s.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/sound/sdl_s.cpp') diff --git a/src/sound/sdl_s.cpp b/src/sound/sdl_s.cpp index 22f5fa07d..57ef9ab9d 100644 --- a/src/sound/sdl_s.cpp +++ b/src/sound/sdl_s.cpp @@ -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); -- cgit v1.2.3-54-g00ecf