summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: da3e25a)
raw | patch | inline | side by side (parent: da3e25a)
author | DeaDDooMER <deaddoomer@deadsoftware.ru> | |
Sun, 1 Dec 2019 21:30:05 +0000 (00:30 +0300) | ||
committer | DeaDDooMER <deaddoomer@deadsoftware.ru> | |
Sun, 1 Dec 2019 21:30:05 +0000 (00:30 +0300) |
src/engine/e_sound_sdl.inc | patch | blob | history |
index 9436cec6b42dee983b3ce2d5ae2aef01c68e5082..afbb8758f3658b92da93419d4f11737c80b3a87f 100644 (file)
if (res and MIX_INIT_FLUIDSYNTH) <> 0 then e_WriteLog('SDL: FLUIDSYNTH playback is active', TMsgType.Notify);
e_WriteLog(Format('SDL: initializing mixer at %d with buffer %d', [gsSDLSampleRate, gsSDLBufferSize]), TMsgType.Notify);
- res := Mix_OpenAudio(gsSDLSampleRate, AUDIO_S16LSB, 2, gsSDLBufferSize);
+ res := Mix_OpenAudio(gsSDLSampleRate, {$IFDEF FPC_LITTLE_ENDIAN}AUDIO_S16LSB{$ELSE}AUDIO_S16MSB{$ENDIF}, 2, gsSDLBufferSize);
if res = -1 then
begin
e_WriteLog('Error initializing SDL mixer:', TMsgType.Fatal);