38 lines
657 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
{
ALshort *data;
ALsizei size;
ALenum format;
ALenum eOriginalFormat;
2007-11-13 18:02:18 -08:00
ALsizei frequency;
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;
2009-08-15 09:14:08 -07:00
struct ALbuffer *next;
2007-11-13 18:02:18 -08:00
} ALbuffer;
ALvoid ALAPIENTRY alBufferSubDataEXT(ALuint buffer,ALenum format,const ALvoid *data,ALsizei offset,ALsizei length);
2009-08-15 09:14:08 -07:00
ALvoid ReleaseALBuffers(ALCdevice *device);
2007-11-13 18:02:18 -08:00
#ifdef __cplusplus
}
#endif
#endif