PLIB interface.
More...
#include <SoundInterface.h>
|
| | PlibSoundInterface (float sampling_rate, int n_channels) |
| virtual | ~PlibSoundInterface () |
| virtual void | setNCars (int n_cars) |
| virtual slScheduler * | getScheduler () |
| 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=NULL, sgVec3 a_obs=NULL) |
| virtual float | getGlobalGain () |
| virtual void | setGlobalGain (float g) |
| | SoundInterface (float sampling_rate, int n_channels) |
| | Make a new sound interface.
|
| virtual | ~SoundInterface () |
| | Destructor - does nothing.
|
| virtual void | initSharedSourcePool () |
| | initialised the pool of shared sources
|
| 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) |
| virtual void | muteForMenu () |
PLIB interface.
Definition at line 243 of file SoundInterface.h.
◆ SoundChar
◆ PlibSoundInterface()
| PlibSoundInterface::PlibSoundInterface |
( |
float | sampling_rate, |
|
|
int | n_channels ) |
◆ ~PlibSoundInterface()
| PlibSoundInterface::~PlibSoundInterface |
( |
| ) |
|
|
virtual |
◆ addSample()
◆ DopplerShift()
| void PlibSoundInterface::DopplerShift |
( |
SoundChar * | sound, |
|
|
float * | p_src, |
|
|
float * | u_src, |
|
|
float * | p, |
|
|
float * | u ) |
|
protected |
◆ getGlobalGain()
| virtual float PlibSoundInterface::getGlobalGain |
( |
| ) |
|
|
inlinevirtual |
◆ getScheduler()
| slScheduler * PlibSoundInterface::getScheduler |
( |
| ) |
|
|
virtual |
◆ setGlobalGain()
| virtual void PlibSoundInterface::setGlobalGain |
( |
float | g | ) |
|
|
inlinevirtual |
◆ SetMaxSoundCar()
◆ setNCars()
| void PlibSoundInterface::setNCars |
( |
int | n_cars | ) |
|
|
virtual |
◆ update()
| void PlibSoundInterface::update |
( |
CarSoundData ** | car_sound_data, |
|
|
int | n_cars, |
|
|
sgVec3 | p_obs, |
|
|
sgVec3 | u_obs, |
|
|
sgVec3 | c_obs = NULL, |
|
|
sgVec3 | a_obs = NULL ) |
|
virtual |
◆ car_src
◆ engpri
◆ global_gain
| float PlibSoundInterface::global_gain |
|
protected |
◆ sched
| slScheduler* PlibSoundInterface::sched |
|
protected |
◆ sound_list
| std::vector<TorcsSound*> PlibSoundInterface::sound_list |
|
protected |
◆ tyre_src
The documentation for this class was generated from the following files:
- C:/Users/berni/Development/torcs_git/torcs-code/torcs/torcs/src/modules/graphic/ssggraph/SoundInterface.h
- C:/Users/berni/Development/torcs_git/torcs-code/torcs/torcs/src/modules/graphic/ssggraph/PlibSoundInterface.cpp