DEADSOFTWARE

mempool is optional now
[d2df-sdl.git] / src / engine / e_sound_sdl.inc
index 4d2e93d25260243e34c6228fb59c4b40cb9ba652..1b8d376aa72f82076369d611ddc245ba10bd0a50 100644 (file)
@@ -18,7 +18,7 @@ interface
 uses
   sdl2,
   SDL2_mixer,
-  mempool,
+  {$IFDEF USE_MEMPOOL}mempool,{$ENDIF}
   e_log,
   SysUtils;
 
@@ -31,7 +31,7 @@ type
     nRefs: Integer;
   end;
 
-  TBasicSound = class(TPoolObject)
+  TBasicSound = class{$IFDEF USE_MEMPOOL}(TPoolObject){$ENDIF}
   private
     FChanNum: Integer; // <0: no channel allocated