TDME2 1.9.121
Private Member Functions | Private Attributes | Friends | List of all members
AudioBufferManager_AudioBufferManaged Class Reference

Managed audio buffer entity. More...

#include <tdme/audio/AudioBufferManager_AudioBufferManaged.h>

Collaboration diagram for AudioBufferManager_AudioBufferManaged:
Collaboration graph

Private Member Functions

 AudioBufferManager_AudioBufferManaged (AudioBufferManager *audioBufferManager, const string &id, int32_t alId)
 Protected constructor. More...
 
const string & getId ()
 
int32_t getAlId ()
 
void setAlId (int32_t alId)
 Set up Open AL audio buffer id. More...
 
int32_t getReferenceCounter ()
 
bool decrementReferenceCounter ()
 decrement reference counter More...
 
void incrementReferenceCounter ()
 increment reference counter More...
 

Private Attributes

AudioBufferManageraudioBufferManager
 
string id
 
int32_t alId
 
int32_t referenceCounter
 

Friends

class AudioBufferManager
 
class Sound
 

Detailed Description

Managed audio buffer entity.

Author
Andreas Drewke

Definition at line 16 of file AudioBufferManager_AudioBufferManaged.h.

Constructor & Destructor Documentation

◆ AudioBufferManager_AudioBufferManaged()

AudioBufferManager_AudioBufferManaged ( AudioBufferManager audioBufferManager,
const string &  id,
int32_t  alId 
)
private

Protected constructor.

Parameters
audioBufferManageraudio buffer manager
idid
alIdOpen AL id

Definition at line 13 of file AudioBufferManager_AudioBufferManaged.cpp.

Member Function Documentation

◆ decrementReferenceCounter()

bool decrementReferenceCounter ( )
inlineprivate

decrement reference counter

Returns
if reference counter = 0

Definition at line 68 of file AudioBufferManager_AudioBufferManaged.h.

◆ getAlId()

int32_t getAlId ( )
inlineprivate
Returns
Open AL id

Definition at line 45 of file AudioBufferManager_AudioBufferManaged.h.

◆ getId()

const string & getId ( )
inlineprivate
Returns
audio buffer id

Definition at line 38 of file AudioBufferManager_AudioBufferManaged.h.

◆ getReferenceCounter()

int32_t getReferenceCounter ( )
inlineprivate
Returns
reference counter

Definition at line 60 of file AudioBufferManager_AudioBufferManaged.h.

◆ incrementReferenceCounter()

void incrementReferenceCounter ( )
inlineprivate

increment reference counter

Definition at line 76 of file AudioBufferManager_AudioBufferManaged.h.

◆ setAlId()

void setAlId ( int32_t  alId)
inlineprivate

Set up Open AL audio buffer id.

Parameters
alIdal Id

Definition at line 53 of file AudioBufferManager_AudioBufferManaged.h.

Friends And Related Function Documentation

◆ AudioBufferManager

friend class AudioBufferManager
friend

Definition at line 18 of file AudioBufferManager_AudioBufferManaged.h.

◆ Sound

friend class Sound
friend

Definition at line 19 of file AudioBufferManager_AudioBufferManaged.h.

Member Data Documentation

◆ alId

int32_t alId
private

Definition at line 24 of file AudioBufferManager_AudioBufferManaged.h.

◆ audioBufferManager

AudioBufferManager* audioBufferManager
private

Definition at line 22 of file AudioBufferManager_AudioBufferManaged.h.

◆ id

string id
private

Definition at line 23 of file AudioBufferManager_AudioBufferManaged.h.

◆ referenceCounter

int32_t referenceCounter
private

Definition at line 25 of file AudioBufferManager_AudioBufferManaged.h.


The documentation for this class was generated from the following files: