| 1 |
{%MainUnit castleinternalopenal.pas} |
| 2 |
|
| 3 |
{ translation of AL/alctypes.h } |
| 4 |
|
| 5 |
type |
| 6 |
TALCdevice = record end; |
| 7 |
PALCdevice = ^TALCdevice; |
| 8 |
TALCcontext = record end; |
| 9 |
PALCcontext = ^TALCcontext; |
| 10 |
|
| 11 |
type |
| 12 |
TALCenum = CInt; |
| 13 |
|
| 14 |
{ Enumerant values begin at column 50. No tabs. } |
| 15 |
|
| 16 |
{ Variables below are officially "constants" for OpenAL. |
| 17 |
In practice, it's horrible and lame but they are different between |
| 18 |
OpenAL implementations: implementations based on Windows Creative |
| 19 |
versions (this also includes OpenAL soft on Unix) have different |
| 20 |
values than OpenAL Sample Implementation. |
| 21 |
|
| 22 |
So they are declared as variables, and will be initialized |
| 23 |
only when OpenAL is initialized (when ALLibraryAvailable is @true). } |
| 24 |
|
| 25 |
var |
| 26 |
{* |
| 27 |
* followed by <int> Hz |
| 28 |
} { } |
| 29 |
ALC_FREQUENCY: Integer; |
| 30 |
|
| 31 |
{* |
| 32 |
* followed by <int> Hz |
| 33 |
} { } |
| 34 |
ALC_REFRESH: Integer; |
| 35 |
|
| 36 |
{* |
| 37 |
* followed by AL_TRUE, AL_FALSE |
| 38 |
} { } |
| 39 |
ALC_SYNC: Integer; |
| 40 |
|
| 41 |
{ |
| 42 |
The Specifier string for default device. |
| 43 |
} |
| 44 |
ALC_DEFAULT_DEVICE_SPECIFIER: Integer; |
| 45 |
ALC_DEVICE_SPECIFIER: Integer; |
| 46 |
ALC_EXTENSIONS: Integer; |
| 47 |
|
| 48 |
ALC_MAJOR_VERSION: Integer; |
| 49 |
ALC_MINOR_VERSION: Integer; |
| 50 |
|
| 51 |
ALC_ATTRIBUTES_SIZE: Integer; |
| 52 |
ALC_ALL_ATTRIBUTES: Integer; |
| 53 |
|
| 54 |
const |
| 55 |
{ bad value } |
| 56 |
ALC_INVALID = 0; |
| 57 |
|
| 58 |
{* |
| 59 |
* errors |
| 60 |
} |
| 61 |
|
| 62 |
{ |
| 63 |
No error. |
| 64 |
} |
| 65 |
ALC_NO_ERROR = 0; |
| 66 |
|
| 67 |
{ |
| 68 |
No device. |
| 69 |
} |
| 70 |
ALC_INVALID_DEVICE = $200; |
| 71 |
|
| 72 |
{ |
| 73 |
Invalid context ID. |
| 74 |
} |
| 75 |
ALC_INVALID_CONTEXT = $201; |
| 76 |
|
| 77 |
{ |
| 78 |
Bad enum. |
| 79 |
} |
| 80 |
ALC_INVALID_ENUM = $202; |
| 81 |
|
| 82 |
{ |
| 83 |
Bad value. |
| 84 |
} |
| 85 |
ALC_INVALID_VALUE = $203; |
| 86 |
|
| 87 |
{ |
| 88 |
Out of memory. |
| 89 |
} |
| 90 |
ALC_OUT_OF_MEMORY = $204; |
| 91 |
|
| 92 |
{* |
| 93 |
* Not sure if the following are conformant |
| 94 |
} { } |
| 95 |
ALC_FALSE = 0; |
| 96 |
ALC_TRUE = 1; { Kambi: to bylo zapisane w C jako (!(ALC_FALSE)) } |