DEADSOFTWARE

revive sdl2 system driver
[d2df-sdl.git] / src / engine / e_sound_sdl.inc
index 4d9eaba5d983da5fc644b7255be1923dfcce928f..ccfd9c4bc2715732e3d746db9f45e1f02065ff9d 100644 (file)
@@ -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!