diff options
author | rubidium <rubidium@openttd.org> | 2010-01-15 23:45:26 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2010-01-15 23:45:26 +0000 |
commit | f74ce1890e9d126dd6b9110cd120cda8fae55271 (patch) | |
tree | f03e2bca7fbb56c63bdece46c954bfade0a1ca39 /src | |
parent | 1a1797ec4d3ead6ac02a92461abe6354fde4ca62 (diff) | |
download | openttd-f74ce1890e9d126dd6b9110cd120cda8fae55271.tar.xz |
(svn r18820) -Codechange: [SDL] make the number of samples runtime configurable and increase the default slightly
Diffstat (limited to 'src')
-rw-r--r-- | src/sound/sdl_s.cpp | 2 |
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); |