alDatabuffer.h 446 B

12345678910111213141516171819202122232425262728293031323334
  1. #ifndef _AL_DATABUFFER_H_
  2. #define _AL_DATABUFFER_H_
  3. #include "AL/al.h"
  4. #ifdef __cplusplus
  5. extern "C" {
  6. #endif
  7. #define UNMAPPED 0
  8. #define MAPPED 1
  9. typedef struct ALdatabuffer
  10. {
  11. ALubyte *data;
  12. ALintptrEXT size;
  13. ALenum state;
  14. ALenum usage;
  15. /* Index to self */
  16. ALuint databuffer;
  17. struct ALdatabuffer *next;
  18. } ALdatabuffer;
  19. ALvoid ReleaseALDatabuffers(ALCdevice *device);
  20. #ifdef __cplusplus
  21. }
  22. #endif
  23. #endif