view ext/openal-soft/OpenAL32/Include/alBuffer.h @ 151:afcd83f7fac8

Backwards compatibility module fife_compat. Import and you'll get the old interface. This is just a start to make small API changes smoother.
author phoku@33b003aa-7bff-0310-803a-e67f0ece8222
date Sat, 11 Oct 2008 12:25:53 +0000
parents 4a0efb7baf70
children
line wrap: on
line source

#ifndef _AL_BUFFER_H_
#define _AL_BUFFER_H_

#include "AL/al.h"

#ifdef __cplusplus
extern "C" {
#endif

#define UNUSED    0
#define PENDING   1
#define PROCESSED 2

typedef struct ALbuffer_struct 
{
    ALenum   format;
    ALenum   eOriginalFormat;
    ALshort *data;
    ALsizei  size;
    ALsizei  frequency;
    ALenum   state;
    ALuint   refcount; // Number of sources using this buffer (deletion can only occur when this is 0)
    struct ALbuffer_struct *next;
} ALbuffer;

ALvoid ReleaseALBuffers(ALvoid);

#ifdef __cplusplus
}
#endif

#endif