TORCS  1.3.9
The Open Racing Car Simulator
SharedSourcePool Class Reference

#include <SoundInterface.h>

Collaboration diagram for SharedSourcePool:

Public Member Functions

 SharedSourcePool (int nbsources)
 
virtual ~SharedSourcePool ()
 
bool getSource (TorcsSound *sound, ALuint *source, bool *needs_init, int *index)
 
bool releaseSource (TorcsSound *sound, int *index)
 
bool isSourceActive (TorcsSound *sound, int *index)
 
int getNbSources (void)
 

Protected Attributes

int nbsources
 
sharedSourcepool
 

Detailed Description

Definition at line 334 of file SoundInterface.h.

Constructor & Destructor Documentation

◆ SharedSourcePool()

SharedSourcePool::SharedSourcePool ( int  nbsources)
inline

Definition at line 336 of file SoundInterface.h.

◆ ~SharedSourcePool()

virtual SharedSourcePool::~SharedSourcePool ( )
inlinevirtual

Definition at line 353 of file SoundInterface.h.

Member Function Documentation

◆ getNbSources()

int SharedSourcePool::getNbSources ( void  )
inline

Definition at line 418 of file SoundInterface.h.

◆ getSource()

bool SharedSourcePool::getSource ( TorcsSound sound,
ALuint *  source,
bool *  needs_init,
int *  index 
)
inline

Definition at line 362 of file SoundInterface.h.

◆ isSourceActive()

bool SharedSourcePool::isSourceActive ( TorcsSound sound,
int *  index 
)
inline

Definition at line 407 of file SoundInterface.h.

◆ releaseSource()

bool SharedSourcePool::releaseSource ( TorcsSound sound,
int *  index 
)
inline

Definition at line 397 of file SoundInterface.h.

Member Data Documentation

◆ nbsources

int SharedSourcePool::nbsources
protected

Definition at line 421 of file SoundInterface.h.

◆ pool

sharedSource* SharedSourcePool::pool
protected

Definition at line 422 of file SoundInterface.h.


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