X-Git-Url: https://deadsoftware.ru/gitweb?a=blobdiff_plain;f=src%2Fengine%2Fe_sound_sdl.inc;h=654969e8ccd4a75335f910ab09e70e207ffb1d91;hb=cd60f23c9e17f6f1b312d59c16ecc0f153500257;hp=0aca0651876ed529463d0f802cd85042f8faad7a;hpb=f3b2a7bd76e861edf57f0d34b51da74517790ff9;p=d2df-sdl.git diff --git a/src/engine/e_sound_sdl.inc b/src/engine/e_sound_sdl.inc index 0aca065..654969e 100644 --- a/src/engine/e_sound_sdl.inc +++ b/src/engine/e_sound_sdl.inc @@ -175,8 +175,7 @@ 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(48000, AUDIO_S16LSB, 2, 2048); - if res = -1 then res := Mix_OpenAudio(44100, AUDIO_S16LSB, 2, 2048); + res := Mix_OpenAudio(44100, AUDIO_S16LSB, 2, 2048); if res = -1 then begin e_WriteLog('Error initializing SDL mixer:', MSG_FATALERROR); @@ -189,6 +188,11 @@ begin e_WriteLog(Format('SDL: frequency=%d; format=%u; channels=%d', [rfreq, rformat, rchans]), MSG_NOTIFY); end; + for i := 0 to Mix_GetNumChunkDecoders()-1 do + begin + e_WriteLog(Format('SDL: chunk decoder %s is avalable', [Mix_GetChunkDecoder(i)]), MSG_NOTIFY); + end; + Mix_AllocateChannels(N_CHANNELS); Mix_ChannelFinished(chanFinished);