summaryrefslogtreecommitdiff
path: root/src/sound
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2010-01-15 23:45:26 +0000
committerrubidium <rubidium@openttd.org>2010-01-15 23:45:26 +0000
commitf74ce1890e9d126dd6b9110cd120cda8fae55271 (patch)
treef03e2bca7fbb56c63bdece46c954bfade0a1ca39 /src/sound
parent1a1797ec4d3ead6ac02a92461abe6354fde4ca62 (diff)
downloadopenttd-f74ce1890e9d126dd6b9110cd120cda8fae55271.tar.xz
(svn r18820) -Codechange: [SDL] make the number of samples runtime configurable and increase the default slightly
Diffstat (limited to 'src/sound')
-rw-r--r--src/sound/sdl_s.cpp2
1 files changed, 1 insertions, 1 deletions
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);