#include <SoundInterface.h>
|
| | OpenalSoundInterface (float sampling_rate, int n_channels) |
| |
| virtual | ~OpenalSoundInterface () |
| |
| virtual void | setNCars (int n_cars) |
| |
| virtual TorcsSound * | addSample (const char *filename, int flags=(ACTIVE_VOLUME|ACTIVE_PITCH), bool loop=false, bool static_pool=true) |
| |
| virtual void | update (CarSoundData **car_sound_data, int n_cars, sgVec3 p_obs, sgVec3 u_obs, sgVec3 c_obs, sgVec3 a_obs) |
| |
| virtual void | muteForMenu () |
| |
| virtual float | getGlobalGain () |
| |
| virtual void | initSharedSourcePool () |
| |
| virtual void | setGlobalGain (float g) |
| |
| virtual bool | getStaticSource (ALuint *source) |
| |
| virtual SharedSourcePool * | getSourcePool (void) |
| |
| | SoundInterface (float sampling_rate, int n_channels) |
| | Make a new sound interface. More...
|
| |
| virtual | ~SoundInterface () |
| | Destructor - does nothing. More...
|
| |
| void | setSkidSound (const char *sound_name) |
| |
| void | setRoadRideSound (const char *sound_name) |
| |
| void | setGrassRideSound (const char *sound_name) |
| |
| void | setCurbRideSound (const char *sound_name) |
| |
| void | setGrassSkidSound (const char *sound_name) |
| |
| void | setMetalSkidSound (const char *sound_name) |
| |
| void | setAxleSound (const char *sound_name) |
| |
| void | setTurboSound (const char *sound_name) |
| |
| void | setBackfireLoopSound (const char *sound_name) |
| |
| void | setCrashSound (const char *sound_name, int index) |
| |
| void | setBangSound (const char *sound_name) |
| |
| void | setBottomCrashSound (const char *sound_name) |
| |
| void | setBackfireSound (const char *sound_name) |
| |
| void | setGearChangeSound (const char *sound_name) |
| |
Definition at line 279 of file SoundInterface.h.
◆ SoundChar
◆ OpenalSoundInterface()
| OpenalSoundInterface::OpenalSoundInterface |
( |
float |
sampling_rate, |
|
|
int |
n_channels |
|
) |
| |
◆ ~OpenalSoundInterface()
| OpenalSoundInterface::~OpenalSoundInterface |
( |
| ) |
|
|
virtual |
◆ addSample()
◆ DopplerShift()
| void OpenalSoundInterface::DopplerShift |
( |
SoundChar * |
sound, |
|
|
float * |
p_src, |
|
|
float * |
u_src, |
|
|
float * |
p, |
|
|
float * |
u |
|
) |
| |
|
protected |
◆ getGlobalGain()
| virtual float OpenalSoundInterface::getGlobalGain |
( |
| ) |
|
|
inlinevirtual |
◆ getSourcePool()
◆ getStaticSource()
| bool OpenalSoundInterface::getStaticSource |
( |
ALuint * |
source | ) |
|
|
virtual |
◆ initSharedSourcePool()
| void OpenalSoundInterface::initSharedSourcePool |
( |
void |
| ) |
|
|
virtual |
◆ muteForMenu()
| void OpenalSoundInterface::muteForMenu |
( |
| ) |
|
|
virtual |
◆ setGlobalGain()
| virtual void OpenalSoundInterface::setGlobalGain |
( |
float |
g | ) |
|
|
inlinevirtual |
◆ SetMaxSoundCar()
◆ setNCars()
| void OpenalSoundInterface::setNCars |
( |
int |
n_cars | ) |
|
|
virtual |
◆ update()
| void OpenalSoundInterface::update |
( |
CarSoundData ** |
car_sound_data, |
|
|
int |
n_cars, |
|
|
sgVec3 |
p_obs, |
|
|
sgVec3 |
u_obs, |
|
|
sgVec3 |
c_obs, |
|
|
sgVec3 |
a_obs |
|
) |
| |
|
virtual |
◆ car_src
◆ cc
| ALCcontext* OpenalSoundInterface::cc |
|
protected |
◆ dev
| ALCdevice* OpenalSoundInterface::dev |
|
protected |
◆ global_gain
| float OpenalSoundInterface::global_gain |
|
protected |
◆ n_static_sources_in_use
| int OpenalSoundInterface::n_static_sources_in_use |
|
protected |
◆ OSI_MAX_BUFFERS
| int OpenalSoundInterface::OSI_MAX_BUFFERS |
|
protected |
◆ OSI_MAX_SOURCES
| int OpenalSoundInterface::OSI_MAX_SOURCES |
|
protected |
◆ OSI_MAX_STATIC_SOURCES
| int OpenalSoundInterface::OSI_MAX_STATIC_SOURCES |
|
protected |
◆ OSI_MIN_DYNAMIC_SOURCES
| const int OpenalSoundInterface::OSI_MIN_DYNAMIC_SOURCES = 4 |
|
staticprotected |
◆ sourcepool
◆ tyre_src
The documentation for this class was generated from the following files: