40 lines
615 B
C
Raw Normal View History

2007-11-13 18:02:18 -08:00
#ifndef _AL_BUFFER_H_
#define _AL_BUFFER_H_
#include "AL/al.h"
#ifdef __cplusplus
extern "C" {
#endif
#define BUFFER_PADDING 2
2007-11-13 18:02:18 -08:00
2009-08-15 09:14:08 -07:00
typedef struct ALbuffer
2007-11-13 18:02:18 -08:00
{
ALfloat *data;
2007-11-13 18:02:18 -08:00
ALsizei size;
ALenum format;
ALenum eOriginalFormat;
2007-11-13 18:02:18 -08:00
ALsizei frequency;
ALsizei OriginalSize;
ALsizei OriginalAlign;
ALsizei LoopStart;
ALsizei LoopEnd;
2007-11-13 18:02:18 -08:00
ALuint refcount; // Number of sources using this buffer (deletion can only occur when this is 0)
// Index to itself
ALuint buffer;
2007-11-13 18:02:18 -08:00
} ALbuffer;
2009-08-15 09:14:08 -07:00
ALvoid ReleaseALBuffers(ALCdevice *device);
2007-11-13 18:02:18 -08:00
#ifdef __cplusplus
}
#endif
#endif