| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139 |
- /*
- Generic implementation of the openalext extension.
- This file should perform any platform-indepedentent functionality
- (e.g. error checking) before calling platform-dependent implementations.
- */
- /*
- * NOTE: This file was originally written by the extension builder, but will not
- * be overwritten (unless --force is specified) and is intended to be modified.
- */
- #include "openalext_internal.h"
- s3eResult openalextInit()
- {
- //Add any generic initialisation code here
- return openalextInit_platform();
- }
- void openalextTerminate()
- {
- //Add any generic termination code here
- openalextTerminate_platform();
- }
- unsigned int _alGetError()
- {
- return _alGetError_platform();
- }
- void _alSourceQueueBuffers(_ALuint sid, _ALsizei numEntries, const _ALuint* bids)
- {
- _alSourceQueueBuffers_platform(sid, numEntries, bids);
- }
- void _alSourceUnqueueBuffers(_ALuint sid, _ALsizei numEntries, _ALuint* bids)
- {
- _alSourceUnqueueBuffers_platform(sid, numEntries, bids);
- }
- void _alGetSourcei(_ALuint sid, _ALenum param, _ALint* value)
- {
- _alGetSourcei_platform(sid, param, value);
- }
- void _alGetSourcef(_ALuint sid, _ALenum param, _ALfloat* value)
- {
- _alGetSourcef_platform(sid, param, value);
- }
- void _alSourcef(_ALuint sid, _ALenum param, _ALfloat value)
- {
- _alSourcef_platform(sid, param, value);
- }
- void _alSourcei(_ALuint sid, _ALenum param, _ALint value)
- {
- _alSourcei_platform(sid, param, value);
- }
- void _alSourcePlay(_ALuint sid)
- {
- _alSourcePlay_platform(sid);
- }
- void _alSourceStop(_ALuint sid)
- {
- _alSourceStop_platform(sid);
- }
- void _alSourcePause(_ALuint sid)
- {
- _alSourcePause_platform(sid);
- }
- void _alGenSources(_ALsizei n, _ALuint* sources)
- {
- _alGenSources_platform(n, sources);
- }
- void _alDeleteSources(_ALsizei n, const _ALuint* sources)
- {
- _alDeleteSources_platform(n, sources);
- }
- void _alGenBuffers(_ALsizei n, _ALuint* buffers)
- {
- _alGenBuffers_platform(n, buffers);
- }
- void _alDeleteBuffers(_ALsizei n, const _ALuint* buffers)
- {
- _alDeleteBuffers_platform(n, buffers);
- }
- void _alBufferData(_ALuint bid, _ALenum format, const _ALvoid* data, _ALsizei size, _ALsizei freq)
- {
- _alBufferData_platform(bid, format, data, size, freq);
- }
- _ALCdevice* _alcOpenDevice(const char* devicename)
- {
- return _alcOpenDevice_platform(devicename);
- }
- void _alcCloseDevice(_ALCdevice* device)
- {
- _alcCloseDevice_platform(device);
- }
- _ALCcontext * _alcCreateContext(_ALCdevice* device, const _ALCint* attrlist)
- {
- return _alcCreateContext_platform(device, attrlist);
- }
- _ALCboolean _alcMakeContextCurrent(_ALCcontext* context)
- {
- return _alcMakeContextCurrent_platform(context);
- }
- void _alcProcessContext(_ALCcontext* context)
- {
- _alcProcessContext_platform(context);
- }
- void _alcSuspendContext(_ALCcontext* context)
- {
- _alcSuspendContext_platform(context);
- }
- void _alcDestroyContext(_ALCcontext* context)
- {
- _alcDestroyContext_platform(context);
- }
- _ALCcontext * _alcGetCurrentContext()
- {
- return _alcGetCurrentContext_platform();
- }
|