openalext_internal.h 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. /*
  2. * Internal header for the openalext extension.
  3. *
  4. * This file should be used for any common function definitions etc that need to
  5. * be shared between the platform-dependent and platform-indepdendent parts of
  6. * this extension.
  7. */
  8. /*
  9. * NOTE: This file was originally written by the extension builder, but will not
  10. * be overwritten (unless --force is specified) and is intended to be modified.
  11. */
  12. #ifndef OPENALEXT_INTERNAL_H
  13. #define OPENALEXT_INTERNAL_H
  14. #include "s3eTypes.h"
  15. #include "openalext.h"
  16. #include "openalext_autodefs.h"
  17. /**
  18. * Initialise the extension. This is called once then the extension is first
  19. * accessed by s3eregister. If this function returns S3E_RESULT_ERROR the
  20. * extension will be reported as not-existing on the device.
  21. */
  22. s3eResult openalextInit();
  23. /**
  24. * Platform-specific initialisation, implemented on each platform
  25. */
  26. s3eResult openalextInit_platform();
  27. /**
  28. * Terminate the extension. This is called once on shutdown, but only if the
  29. * extension was loader and Init() was successful.
  30. */
  31. void openalextTerminate();
  32. /**
  33. * Platform-specific termination, implemented on each platform
  34. */
  35. void openalextTerminate_platform();
  36. unsigned int _alGetError_platform();
  37. void _alSourceQueueBuffers_platform(_ALuint sid, _ALsizei numEntries, const _ALuint* bids);
  38. void _alSourceUnqueueBuffers_platform(_ALuint sid, _ALsizei numEntries, _ALuint* bids);
  39. void _alGetSourcei_platform(_ALuint sid, _ALenum param, _ALint* value);
  40. void _alGetSourcef_platform(_ALuint sid, _ALenum param, _ALfloat* value);
  41. void _alSourcef_platform(_ALuint sid, _ALenum param, _ALfloat value);
  42. void _alSourcei_platform(_ALuint sid, _ALenum param, _ALint value);
  43. void _alSourcePlay_platform(_ALuint sid);
  44. void _alSourceStop_platform(_ALuint sid);
  45. void _alSourcePause_platform(_ALuint sid);
  46. void _alGenSources_platform(_ALsizei n, _ALuint* sources);
  47. void _alDeleteSources_platform(_ALsizei n, const _ALuint* sources);
  48. void _alGenBuffers_platform(_ALsizei n, _ALuint* buffers);
  49. void _alDeleteBuffers_platform(_ALsizei n, const _ALuint* buffers);
  50. void _alBufferData_platform(_ALuint bid, _ALenum format, const _ALvoid* data, _ALsizei size, _ALsizei freq);
  51. _ALCdevice* _alcOpenDevice_platform(const char* devicename);
  52. void _alcCloseDevice_platform(_ALCdevice* device);
  53. _ALCcontext * _alcCreateContext_platform(_ALCdevice* device, const _ALCint* attrlist);
  54. _ALCboolean _alcMakeContextCurrent_platform(_ALCcontext* context);
  55. void _alcProcessContext_platform(_ALCcontext* context);
  56. void _alcSuspendContext_platform(_ALCcontext* context);
  57. void _alcDestroyContext_platform(_ALCcontext* context);
  58. _ALCcontext * _alcGetCurrentContext_platform();
  59. #endif /* !OPENALEXT_INTERNAL_H */