alBuffer.h 615 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. #ifndef _AL_BUFFER_H_
  2. #define _AL_BUFFER_H_
  3. #include "AL/al.h"
  4. #ifdef __cplusplus
  5. extern "C" {
  6. #endif
  7. #define BUFFER_PADDING 2
  8. typedef struct ALbuffer
  9. {
  10. ALfloat *data;
  11. ALsizei size;
  12. ALenum format;
  13. ALenum eOriginalFormat;
  14. ALsizei frequency;
  15. ALsizei OriginalSize;
  16. ALsizei OriginalAlign;
  17. ALsizei LoopStart;
  18. ALsizei LoopEnd;
  19. ALuint refcount; // Number of sources using this buffer (deletion can only occur when this is 0)
  20. // Index to itself
  21. ALuint buffer;
  22. } ALbuffer;
  23. ALvoid ReleaseALBuffers(ALCdevice *device);
  24. #ifdef __cplusplus
  25. }
  26. #endif
  27. #endif