openal.pas 565 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. {
  2. Translation of the OpenAL headers for FreePascal
  3. Copyright (C) 2006 by Ivo Steinmann
  4. }
  5. unit openal;
  6. {$mode objfpc}
  7. interface
  8. uses
  9. ctypes;
  10. {$IFDEF WINDOWS}
  11. {$DEFINE DYNLINK}
  12. {$ENDIF}
  13. {$IF Defined(DYNLINK)}
  14. const
  15. {$IF Defined(WINDOWS)}
  16. openallib = 'openal32.dll';
  17. {$ELSEIF Defined(UNIX)}
  18. openallib = 'libopenal.so';
  19. {$ELSE}
  20. {$MESSAGE ERROR 'DYNLINK not supported'}
  21. {$IFEND}
  22. {$ELSEIF Defined(Darwin)}
  23. {$linkframework OpenAL}
  24. {$ELSE}
  25. {$LINKLIB openal}
  26. {$ENDIF}
  27. {$include alh.inc}
  28. {$include alch.inc}
  29. {$include alexth.inc}
  30. implementation
  31. end.