index 4d9eaba5d983da5fc644b7255be1923dfcce928f..9436cec6b42dee983b3ce2d5ae2aef01c68e5082 100644 (file)
uses
{$IFDEF USE_MEMPOOL}mempool,{$ENDIF}
- SDL2, SDL2_mixer,
+ SDL2, SDL2_mixer, envvars,
e_log, SysUtils;
type
Result := False;
SoundInitialized := False;
+ {$IFDEF HEADLESS}
+ // HACK: shit this into env and hope for the best
+ SetEnvVar('SDL_AUDIODRIVER', 'dummy');
+ {$ENDIF}
+
if NoOutput then begin Result := true; Exit end;
// wow, this is actually MIDI player!