DEADSOFTWARE

Sound: OpenAL: libxmp support
[d2df-sdl.git] / src / lib / openal / al.pas
1 {
2 Translation of the OpenAL headers for FreePascal
3 Copyright (C) 2006 by Ivo Steinmann
4 Copyright (C) 2019 by fgsfds
5 }
7 unit AL;
9 {$mode objfpc}
11 interface
13 uses
14 ctypes;
16 {$IFDEF WINDOWS}
17 {$IFNDEF AL_WINDOZE_STATIC}
18 {$DEFINE AL_DYNAMIC}
19 {$ENDIF}
20 {$ENDIF}
22 {$IF DEFINED(AL_DYNAMIC)}
23 const
24 {$IF DEFINED(WINDOWS)}
25 openallib = 'openal32.dll';
26 {$ELSEIF DEFINED(UNIX)}
27 openallib = 'libopenal.so';
28 {$ELSE}
29 {$MESSAGE ERROR 'AL_DYNAMIC not supported'}
30 {$IFEND}
31 {$ELSEIF DEFINED(Darwin)}
32 {$LINKFRAMEWORK OpenAL}
33 {$ELSE}
34 {$LINKLIB openal}
35 {$ENDIF}
37 {$include al.inc}
38 {$include alc.inc}
39 {$include alext.inc}
40 {$include efx.inc}
42 implementation
44 end.