X-Git-Url: https://deadsoftware.ru/gitweb?p=d2df-sdl.git;a=blobdiff_plain;f=src%2Fengine%2Fe_sound_sdl.inc;h=ccfd9c4bc2715732e3d746db9f45e1f02065ff9d;hp=4d9eaba5d983da5fc644b7255be1923dfcce928f;hb=724d5405f0f3fe166b931b1b8b5745b2eb340651;hpb=3c277b2aaae8425a26b2d3badc2f6bf5ad2fd817 diff --git a/src/engine/e_sound_sdl.inc b/src/engine/e_sound_sdl.inc index 4d9eaba..ccfd9c4 100644 --- a/src/engine/e_sound_sdl.inc +++ b/src/engine/e_sound_sdl.inc @@ -178,6 +178,11 @@ begin Result := False; SoundInitialized := False; + {$IFDEF HEADLESS} + // HACK: shit this into env and hope for the best + SetEnvVar('SDL_AUDIODRIVER', 'dummy'); + {$ELSEIF} + if NoOutput then begin Result := true; Exit end; // wow, this is actually MIDI player!