openalext.cpp 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  1. /*
  2. Generic implementation of the openalext extension.
  3. This file should perform any platform-indepedentent functionality
  4. (e.g. error checking) before calling platform-dependent implementations.
  5. */
  6. /*
  7. * NOTE: This file was originally written by the extension builder, but will not
  8. * be overwritten (unless --force is specified) and is intended to be modified.
  9. */
  10. #include "openalext_internal.h"
  11. s3eResult openalextInit()
  12. {
  13. //Add any generic initialisation code here
  14. return openalextInit_platform();
  15. }
  16. void openalextTerminate()
  17. {
  18. //Add any generic termination code here
  19. openalextTerminate_platform();
  20. }
  21. unsigned int _alGetError()
  22. {
  23. return _alGetError_platform();
  24. }
  25. void _alSourceQueueBuffers(_ALuint sid, _ALsizei numEntries, const _ALuint* bids)
  26. {
  27. _alSourceQueueBuffers_platform(sid, numEntries, bids);
  28. }
  29. void _alSourceUnqueueBuffers(_ALuint sid, _ALsizei numEntries, _ALuint* bids)
  30. {
  31. _alSourceUnqueueBuffers_platform(sid, numEntries, bids);
  32. }
  33. void _alGetSourcei(_ALuint sid, _ALenum param, _ALint* value)
  34. {
  35. _alGetSourcei_platform(sid, param, value);
  36. }
  37. void _alGetSourcef(_ALuint sid, _ALenum param, _ALfloat* value)
  38. {
  39. _alGetSourcef_platform(sid, param, value);
  40. }
  41. void _alSourcef(_ALuint sid, _ALenum param, _ALfloat value)
  42. {
  43. _alSourcef_platform(sid, param, value);
  44. }
  45. void _alSourcei(_ALuint sid, _ALenum param, _ALint value)
  46. {
  47. _alSourcei_platform(sid, param, value);
  48. }
  49. void _alSourcePlay(_ALuint sid)
  50. {
  51. _alSourcePlay_platform(sid);
  52. }
  53. void _alSourceStop(_ALuint sid)
  54. {
  55. _alSourceStop_platform(sid);
  56. }
  57. void _alSourcePause(_ALuint sid)
  58. {
  59. _alSourcePause_platform(sid);
  60. }
  61. void _alGenSources(_ALsizei n, _ALuint* sources)
  62. {
  63. _alGenSources_platform(n, sources);
  64. }
  65. void _alDeleteSources(_ALsizei n, const _ALuint* sources)
  66. {
  67. _alDeleteSources_platform(n, sources);
  68. }
  69. void _alGenBuffers(_ALsizei n, _ALuint* buffers)
  70. {
  71. _alGenBuffers_platform(n, buffers);
  72. }
  73. void _alDeleteBuffers(_ALsizei n, const _ALuint* buffers)
  74. {
  75. _alDeleteBuffers_platform(n, buffers);
  76. }
  77. void _alBufferData(_ALuint bid, _ALenum format, const _ALvoid* data, _ALsizei size, _ALsizei freq)
  78. {
  79. _alBufferData_platform(bid, format, data, size, freq);
  80. }
  81. _ALCdevice* _alcOpenDevice(const char* devicename)
  82. {
  83. return _alcOpenDevice_platform(devicename);
  84. }
  85. void _alcCloseDevice(_ALCdevice* device)
  86. {
  87. _alcCloseDevice_platform(device);
  88. }
  89. _ALCcontext * _alcCreateContext(_ALCdevice* device, const _ALCint* attrlist)
  90. {
  91. return _alcCreateContext_platform(device, attrlist);
  92. }
  93. _ALCboolean _alcMakeContextCurrent(_ALCcontext* context)
  94. {
  95. return _alcMakeContextCurrent_platform(context);
  96. }
  97. void _alcProcessContext(_ALCcontext* context)
  98. {
  99. _alcProcessContext_platform(context);
  100. }
  101. void _alcSuspendContext(_ALCcontext* context)
  102. {
  103. _alcSuspendContext_platform(context);
  104. }
  105. void _alcDestroyContext(_ALCcontext* context)
  106. {
  107. _alcDestroyContext_platform(context);
  108. }
  109. _ALCcontext * _alcGetCurrentContext()
  110. {
  111. return _alcGetCurrentContext_platform();
  112. }