| 1 |
{%MainUnit castleinternalopenal.pas} |
| 2 |
|
| 3 |
{ translation of AL/alc.h } |
| 4 |
|
| 5 |
{ we should include here OpenAL_altypes.inc but they are already included |
| 6 |
with OpenAL_al.inc } |
| 7 |
|
| 8 |
{$I castleinternalopenal_alctypes.inc} |
| 9 |
|
| 10 |
{ #define ALC_VERSION_0_1 1 } |
| 11 |
|
| 12 |
var |
| 13 |
{ } |
| 14 |
alcCreateContext : function( dev:PALCdevice; attrlist:PALint ):PALCcontext; cdecl; |
| 15 |
|
| 16 |
{* |
| 17 |
* There is no current context, as we can mix |
| 18 |
* several active contexts. But al* calls |
| 19 |
* only affect the current context. |
| 20 |
} { } |
| 21 |
alcMakeContextCurrent : function( alcHandle:PALCcontext ):TALCenum; cdecl; |
| 22 |
|
| 23 |
{ |
| 24 |
Perform processing on a synced context, non-op on a asynchronous |
| 25 |
context. |
| 26 |
} |
| 27 |
alcProcessContext : function( alcHandle:PALCcontext ):PALCcontext; cdecl; |
| 28 |
|
| 29 |
{ |
| 30 |
Suspend processing on an asynchronous context, non-op on a |
| 31 |
synced context. |
| 32 |
} |
| 33 |
alcSuspendContext : procedure( alcHandle:PALCcontext ); cdecl; |
| 34 |
|
| 35 |
alcDestroyContext : function( alcHandle:PALCcontext ):TALCenum; cdecl; |
| 36 |
|
| 37 |
alcGetError : function( dev:PALCdevice ):TALCenum; cdecl; |
| 38 |
|
| 39 |
alcGetCurrentContext : function():PALCcontext; cdecl; |
| 40 |
|
| 41 |
alcOpenDevice : function( tokstr:PChar ):PALCdevice; cdecl; |
| 42 |
alcCloseDevice : procedure( dev:PALCdevice ); cdecl; |
| 43 |
|
| 44 |
alcIsExtensionPresent : function(device:PALCdevice; extName:PChar):TALboolean; cdecl; |
| 45 |
alcGetProcAddress : function(device:PALCdevice; funcName:PChar):PALvoid; cdecl; |
| 46 |
alcGetEnumValue : function(device:PALCdevice; enumName:PChar):TALenum; cdecl; |
| 47 |
|
| 48 |
alcGetContextsDevice : function(context:PALCcontext):PALCdevice; cdecl; |
| 49 |
|
| 50 |
{* |
| 51 |
* Query functions |
| 52 |
} { } |
| 53 |
alcGetString : function(deviceHandle:PALCdevice; token:TALenum):PChar; cdecl; |
| 54 |
alcGetIntegerv : procedure(deviceHandle:PALCdevice; token:TALenum; size:TALsizei; dest:PALint); cdecl; |