openal.pas 508 B

1234567891011121314151617181920212223242526272829303132333435363738
  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. {$IFDEF 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. {$ELSE}
  23. {$LINKLIB openal}
  24. {$ENDIF}
  25. {$include alh.inc}
  26. {$include alch.inc}
  27. {$include alexth.inc}
  28. implementation
  29. end.