1 {
2 Translation of the OpenAL headers for FreePascal
3 Copyright (C) 2006 by Ivo Steinmann
4 Copyright (C) 2019 by fgsfds
5 }
9 {$mode objfpc}
11 interface
13 uses
14 ctypes;
16 {$IF DEFINED(WINDOWS)}
17 {$IFDEF OPENAL_WINDOZE_STATIC}
18 {$LINKLIB libopenal.a}
19 {$ELSE}
21 {$DEFINE AL_DYNAMIC}
22 {$ENDIF}
23 {$ELSEIF DEFINED(DARWIN)}
24 {$LINKFRAMEWORK OpenAL}
25 {$ELSEIF DEFINED(UNIX)}
27 {$DEFINE AL_DYNAMIC}
28 {$ELSE}
29 {$ERROR OpenAL not supported on this platform. Fix it!}
30 {$ENDIF}
32 {$include al.inc}
33 {$include alc.inc}
34 {$include alext.inc}
35 {$include efx.inc}
37 implementation