X-Git-Url: http://deadsoftware.ru/gitweb?a=blobdiff_plain;f=src%2Fengine%2Fe_sound_sdl.inc;h=541f31a908239b7e0d05417ab52cfe1394279bbc;hb=58ec81a463f18de2ca4f49301a0d7dca8f55a19e;hp=ce644a70a77c70f10a23deaf6d654544beefd43a;hpb=605f9546f8ffc4a8354f83ed3a854d95562e45b3;p=d2df-sdl.git diff --git a/src/engine/e_sound_sdl.inc b/src/engine/e_sound_sdl.inc index ce644a7..541f31a 100644 --- a/src/engine/e_sound_sdl.inc +++ b/src/engine/e_sound_sdl.inc @@ -175,7 +175,8 @@ begin if (res and MIX_INIT_OGG) <> 0 then e_WriteLog('SDL: OGG playback is active', MSG_NOTIFY); if (res and MIX_INIT_FLUIDSYNTH) <> 0 then e_WriteLog('SDL: FLUIDSYNTH playback is active', MSG_NOTIFY); - res := Mix_OpenAudio(44100, AUDIO_S16LSB, 2, 2048); + e_WriteLog(Format('SDL: initializing mixer at %d with buffer %d', [gsSDLSampleRate, gsSDLBufferSize]), MSG_NOTIFY); + res := Mix_OpenAudio(gsSDLSampleRate, AUDIO_S16LSB, 2, gsSDLBufferSize); if res = -1 then begin e_WriteLog('Error initializing SDL mixer:', MSG_FATALERROR);