12345678910111213141516171819202122232425262728293031323334353637383940 |
- {
- Translation of the OpenAL headers for FreePascal
- Copyright (C) 2006 by Ivo Steinmann
- }
- unit openal;
- {$mode objfpc}
- interface
- uses
- ctypes;
- {$IFDEF WINDOWS}
- {$DEFINE DYNLINK}
- {$ENDIF}
- {$IF Defined(DYNLINK)}
- const
- {$IF Defined(WINDOWS)}
- openallib = 'openal32.dll';
- {$ELSEIF Defined(UNIX)}
- openallib = 'libopenal.so';
- {$ELSE}
- {$MESSAGE ERROR 'DYNLINK not supported'}
- {$IFEND}
- {$ELSEIF Defined(Darwin)}
- {$linkframework OpenAL}
- {$ELSE}
- {$LINKLIB openal}
- {$ENDIF}
- {$include alh.inc}
- {$include alch.inc}
- {$include alexth.inc}
- implementation
- end.
|