| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319 |
- include:
- #define AL_NONE 0
- /* Boolean False. */
- #define AL_FALSE 0
- /** Boolean True. */
- #define AL_TRUE 1
- /** Indicate Source has relative coordinates. */
- #define AL_SOURCE_RELATIVE 0x202
- /**
- * Directional source, inner cone angle, in degrees.
- * Range: [0-360]
- * Default: 360
- */
- #define AL_CONE_INNER_ANGLE 0x1001
- /**
- * Directional source, outer cone angle, in degrees.
- * Range: [0-360]
- * Default: 360
- */
- #define AL_CONE_OUTER_ANGLE 0x1002
- /**
- * Specify the pitch to be applied at source.
- * Range: [0.5-2.0]
- * Default: 1.0
- */
- #define AL_PITCH 0x1003
-
- /**
- * Specify the current location in three dimensional space.
- * OpenAL, like OpenGL, uses a right handed coordinate system,
- * where in a frontal default view X (thumb) points right,
- * Y points up (index finger), and Z points towards the
- * viewer/camera (middle finger).
- * To switch from a left handed coordinate system, flip the
- * sign on the Z coordinate.
- * Listener position is always in the world coordinate system.
- */
- #define AL_POSITION 0x1004
-
- /** Specify the current direction. */
- #define AL_DIRECTION 0x1005
-
- /** Specify the current velocity in three dimensional space. */
- #define AL_VELOCITY 0x1006
- /**
- * Indicate whether source is looping.
- * Type: ALboolean?
- * Range: [AL_TRUE, AL_FALSE]
- * Default: FALSE.
- */
- #define AL_LOOPING 0x1007
- /**
- * Indicate the buffer to provide sound samples.
- * Type: _ALuint.
- * Range: any valid Buffer id.
- */
- #define AL_BUFFER 0x1009
-
- /**
- * Indicate the gain (volume amplification) applied.
- * Type: _ALfloat.
- * Range: ]0.0- ]
- * A value of 1.0 means un-attenuated/unchanged.
- * Each division by 2 equals an attenuation of -6dB.
- * Each multiplicaton with 2 equals an amplification of +6dB.
- * A value of 0.0 is meaningless with respect to a logarithmic
- * scale; it is interpreted as zero volume - the channel
- * is effectively disabled.
- */
- #define AL_GAIN 0x100A
- /*
- * Indicate minimum source attenuation
- * Type: _ALfloat
- * Range: [0.0 - 1.0]
- *
- * Logarthmic
- */
- #define AL_MIN_GAIN 0x100D
- /**
- * Indicate maximum source attenuation
- * Type: _ALfloat
- * Range: [0.0 - 1.0]
- *
- * Logarthmic
- */
- #define AL_MAX_GAIN 0x100E
- /**
- * Indicate listener orientation.
- *
- * at/up
- */
- #define AL_ORIENTATION 0x100F
- /**
- * Source state information.
- */
- #define AL_SOURCE_STATE 0x1010
- #define AL_INITIAL 0x1011
- #define AL_PLAYING 0x1012
- #define AL_PAUSED 0x1013
- #define AL_STOPPED 0x1014
- /**
- * Buffer Queue params
- */
- #define AL_BUFFERS_QUEUED 0x1015
- #define AL_BUFFERS_PROCESSED 0x1016
- /**
- * Source buffer position information
- */
- #define AL_SEC_OFFSET 0x1024
- #define AL_SAMPLE_OFFSET 0x1025
- #define AL_BYTE_OFFSET 0x1026
- /*
- * Source type (Static, Streaming or undetermined)
- * Source is Static if a Buffer has been attached using AL_BUFFER
- * Source is Streaming if one or more Buffers have been attached using alSourceQueueBuffers
- * Source is undetermined when it has the NULL buffer attached
- */
- #define AL_SOURCE_TYPE 0x1027
- #define AL_STATIC 0x1028
- #define AL_STREAMING 0x1029
- #define AL_UNDETERMINED 0x1030
- /** Sound samples: format specifier. */
- #define AL_FORMAT_MONO8 0x1100
- #define AL_FORMAT_MONO16 0x1101
- #define AL_FORMAT_STEREO8 0x1102
- #define AL_FORMAT_STEREO16 0x1103
- /**
- * source specific reference distance
- * Type: _ALfloat
- * Range: 0.0 - +inf
- *
- * At 0.0, no distance attenuation occurs. Default is
- * 1.0.
- */
- #define AL_REFERENCE_DISTANCE 0x1020
- /**
- * source specific rolloff factor
- * Type: _ALfloat
- * Range: 0.0 - +inf
- *
- */
- #define AL_ROLLOFF_FACTOR 0x1021
- /**
- * Directional source, outer cone gain.
- *
- * Default: 0.0
- * Range: [0.0 - 1.0]
- * Logarithmic
- */
- #define AL_CONE_OUTER_GAIN 0x1022
- /**
- * Indicate distance above which sources are not
- * attenuated using the inverse clamped distance model.
- *
- * Default: +inf
- * Type: _ALfloat
- * Range: 0.0 - +inf
- */
- #define AL_MAX_DISTANCE 0x1023
- /**
- * Sound samples: frequency, in units of Hertz [Hz].
- * This is the number of samples per second. Half of the
- * sample frequency marks the maximum significant
- * frequency component.
- */
- #define AL_FREQUENCY 0x2001
- #define AL_BITS 0x2002
- #define AL_CHANNELS 0x2003
- #define AL_SIZE 0x2004
- /**
- * Buffer state.
- *
- * Not supported for public use (yet).
- */
- #define AL_UNUSED 0x2010
- #define AL_PENDING 0x2011
- #define AL_PROCESSED 0x2012
- /** Errors: No Error. */
- #define AL_NO_ERROR 0
- /**
- * Invalid Name paramater passed to AL call.
- */
- #define AL_INVALID_NAME 0xA001
- /**
- * Invalid parameter passed to AL call.
- */
- #define AL_INVALID_ENUM 0xA002
- /**
- * Invalid enum parameter value.
- */
- #define AL_INVALID_VALUE 0xA003
- /**
- * Illegal call.
- */
- #define AL_INVALID_OPERATION 0xA004
-
- /**
- * No mojo.
- */
- #define AL_OUT_OF_MEMORY 0xA005
- /** Context strings: Vendor Name. */
- #define AL_VENDOR 0xB001
- #define AL_VERSION 0xB002
- #define AL_RENDERER 0xB003
- #define AL_EXTENSIONS 0xB004
- /** Global tweakage. */
- /**
- * Doppler scale. Default 1.0
- */
- #define AL_DOPPLER_FACTOR 0xC000
- /**
- * Tweaks speed of propagation.
- */
- #define AL_DOPPLER_VELOCITY 0xC001
- /**
- * Speed of Sound in units per second
- */
- #define AL_SPEED_OF_SOUND 0xC003
- /**
- * Distance models
- *
- * used in conjunction with DistanceModel
- *
- * implicit: NONE, which disances distance attenuation.
- */
- #define AL_DISTANCE_MODEL 0xD000
- #define AL_INVERSE_DISTANCE 0xD001
- #define AL_INVERSE_DISTANCE_CLAMPED 0xD002
- #define AL_LINEAR_DISTANCE 0xD003
- #define AL_LINEAR_DISTANCE_CLAMPED 0xD004
- #define AL_EXPONENT_DISTANCE 0xD005
- #define AL_EXPONENT_DISTANCE_CLAMPED 0xD006
- #define _ALuint unsigned int
- #define _ALint int
- #define _ALCint int
- #define _ALsizei int
- #define _ALenum unsigned int
- #define _ALfloat float
- #define _ALCboolean char
- #define _ALvoid void
- typedef struct _ALCdevice _ALCdevice;
- typedef struct _ALCcontext _ALCcontext;
- #include "s3eTypes.h"
- functions:
- unsigned int _alGetError() 0
- void _alSourceQueueBuffers( _ALuint sid, _ALsizei numEntries, const _ALuint* bids)
- void _alSourceUnqueueBuffers( _ALuint sid, _ALsizei numEntries, _ALuint* bids )
- void _alGetSourcei( _ALuint sid, _ALenum param, _ALint* value )
- void _alGetSourcef( _ALuint sid, _ALenum param, _ALfloat* value )
- void _alSourcef( _ALuint sid, _ALenum param, _ALfloat value )
- void _alSourcei( _ALuint sid, _ALenum param, _ALint value )
- void _alSourcePlay( _ALuint sid )
- void _alSourceStop( _ALuint sid )
- void _alSourcePause( _ALuint sid )
- void _alGenSources( _ALsizei n, _ALuint* sources )
- void _alDeleteSources( _ALsizei n, const _ALuint* sources )
- void _alGenBuffers( _ALsizei n, _ALuint* buffers );
- void _alDeleteBuffers( _ALsizei n, const _ALuint* buffers );
- void _alBufferData( _ALuint bid, _ALenum format, const _ALvoid* data, _ALsizei size, _ALsizei freq );
- _ALCdevice* _alcOpenDevice( const char* devicename ) 0
- void _alcCloseDevice( _ALCdevice* device )
- _ALCcontext * _alcCreateContext( _ALCdevice* device, const _ALCint* attrlist ) 0
- _ALCboolean _alcMakeContextCurrent( _ALCcontext* context ) 0
- void _alcProcessContext( _ALCcontext* context )
- void _alcSuspendContext( _ALCcontext* context )
- void _alcDestroyContext( _ALCcontext* context )
- _ALCcontext * _alcGetCurrentContext() 0
|