~ubuntu-branches/ubuntu/jaunty/openal-soft/jaunty

« back to all changes in this revision

Viewing changes to OpenAL32/Include/alBuffer.h

  • Committer: Bazaar Package Importer
  • Author(s): Reinhard Tartler
  • Date: 2008-06-07 17:44:48 UTC
  • Revision ID: james.westby@ubuntu.com-20080607174448-fmamd83uujnkhutw
Tags: upstream-1.3.253
ImportĀ upstreamĀ versionĀ 1.3.253

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef _AL_BUFFER_H_
 
2
#define _AL_BUFFER_H_
 
3
 
 
4
#include "AL/al.h"
 
5
 
 
6
#ifdef __cplusplus
 
7
extern "C" {
 
8
#endif
 
9
 
 
10
#define UNUSED    0
 
11
#define PENDING   1
 
12
#define PROCESSED 2
 
13
 
 
14
typedef struct ALbuffer_struct 
 
15
{
 
16
    ALenum   format;
 
17
    ALenum   eOriginalFormat;
 
18
    ALshort *data;
 
19
    ALsizei  size;
 
20
    ALsizei  frequency;
 
21
    ALenum   state;
 
22
    ALuint   refcount; // Number of sources using this buffer (deletion can only occur when this is 0)
 
23
    struct ALbuffer_struct *next;
 
24
} ALbuffer;
 
25
 
 
26
ALvoid ReleaseALBuffers(ALvoid);
 
27
 
 
28
#ifdef __cplusplus
 
29
}
 
30
#endif
 
31
 
 
32
#endif