Openal torcs sound. More...
#include <TorcsSound.h>


Public Member Functions | |
| OpenalTorcsSound (const char *filename, OpenalSoundInterface *sitf, int flags=(ACTIVE_VOLUME|ACTIVE_PITCH), bool loop=false, bool static_pool=true) | |
| Create a new torcs sound. More... | |
| virtual | ~OpenalTorcsSound () |
| virtual void | setVolume (float vol) |
| virtual void | setPitch (float pitch) |
| virtual void | setLPFilter (float lp) |
| virtual void | setSource (sgVec3 p, sgVec3 u) |
| virtual void | getSource (sgVec3 p, sgVec3 u) |
| virtual void | setReferenceDistance (float dist) |
| virtual void | play () |
| virtual void | start () |
| virtual void | stop () |
| virtual void | resume () |
| virtual void | pause () |
| virtual void | update () |
| virtual bool | isPlaying () |
| Return true if playing. More... | |
| virtual bool | isPaused () |
| Return true if paused. More... | |
Public Member Functions inherited from TorcsSound | |
| TorcsSound (int flags=(ACTIVE_VOLUME|ACTIVE_PITCH)) | |
| Consruct a sound. More... | |
| virtual | ~TorcsSound () |
| Destructor. More... | |
| virtual float | getVolume () |
| virtual float | getPitch () |
| virtual float | getLPfilter () |
Protected Attributes | |
| ALuint | buffer |
| buffer id More... | |
| ALuint | source |
| source id More... | |
| ALfloat | source_position [3] |
| source position More... | |
| ALfloat | source_velocity [3] |
| source velocity More... | |
| ALfloat | zeroes [3] |
| just a vector of 0s More... | |
| ALfloat | back [6] |
| direction of back More... | |
| ALfloat | front [6] |
| direction of front More... | |
| bool | playing |
| bool | paused |
| ALfloat | MAX_DISTANCE |
| maximum allowed distance More... | |
| ALfloat | MAX_DISTANCE_LOW |
| maximum allowed distance More... | |
| ALfloat | REFERENCE_DISTANCE |
| reference distance for sound More... | |
| ALfloat | ROLLOFF_FACTOR |
| how fast we need to roll off More... | |
| int | poolindex |
| which pool the sound is assigned to More... | |
| OpenalSoundInterface * | itf |
| Handle to the interface. More... | |
| bool | static_pool |
| dynamic or static source assignment? More... | |
| bool | is_enabled |
| is it available at all? More... | |
Protected Attributes inherited from TorcsSound | |
| class SoundInterface * | iface |
| Handler to the interface. More... | |
| int | flags |
| Flags relating to what effects are to be used. More... | |
| float | MAX_VOL |
| Maximum volume. More... | |
| float | volume |
| Current volume. More... | |
| float | pitch |
| Current pitch. More... | |
| float | lowpass |
| Current low pass filter. More... | |
| bool | loop |
| Whether it's a looping sound. More... | |
Openal torcs sound.
Definition at line 158 of file TorcsSound.h.
| OpenalTorcsSound::OpenalTorcsSound | ( | const char * | filename, |
| OpenalSoundInterface * | sitf, | ||
| int | flags = (ACTIVE_VOLUME|ACTIVE_PITCH), |
||
| bool | loop = false, |
||
| bool | static_pool = true |
||
| ) |
Create a new torcs sound.
Definition at line 285 of file TorcsSound.cpp.

|
virtual |
Definition at line 424 of file TorcsSound.cpp.
|
virtual |
Reimplemented from TorcsSound.
Definition at line 475 of file TorcsSound.cpp.
|
inlinevirtual |
|
inlinevirtual |
|
virtual |
Implements TorcsSound.
Definition at line 556 of file TorcsSound.cpp.
|
virtual |
Implements TorcsSound.
Definition at line 484 of file TorcsSound.cpp.

|
virtual |
Implements TorcsSound.
Definition at line 548 of file TorcsSound.cpp.
|
virtual |
Reimplemented from TorcsSound.
Definition at line 445 of file TorcsSound.cpp.
|
virtual |
Reimplemented from TorcsSound.
Definition at line 440 of file TorcsSound.cpp.
|
virtual |
Reimplemented from TorcsSound.
Definition at line 451 of file TorcsSound.cpp.

|
virtual |
Reimplemented from TorcsSound.
Definition at line 466 of file TorcsSound.cpp.
|
virtual |
Reimplemented from TorcsSound.
Definition at line 435 of file TorcsSound.cpp.
|
virtual |
Implements TorcsSound.
Definition at line 489 of file TorcsSound.cpp.

|
virtual |
Implements TorcsSound.
Definition at line 528 of file TorcsSound.cpp.

|
virtual |
Implements TorcsSound.
Definition at line 563 of file TorcsSound.cpp.

|
protected |
direction of back
Definition at line 165 of file TorcsSound.h.
|
protected |
buffer id
Definition at line 160 of file TorcsSound.h.
|
protected |
direction of front
Definition at line 166 of file TorcsSound.h.
|
protected |
is it available at all?
Definition at line 175 of file TorcsSound.h.
|
protected |
Handle to the interface.
Definition at line 173 of file TorcsSound.h.
|
protected |
maximum allowed distance
Definition at line 168 of file TorcsSound.h.
|
protected |
maximum allowed distance
Definition at line 169 of file TorcsSound.h.
|
protected |
Definition at line 167 of file TorcsSound.h.
|
protected |
Definition at line 167 of file TorcsSound.h.
|
protected |
which pool the sound is assigned to
Definition at line 172 of file TorcsSound.h.
|
protected |
reference distance for sound
Definition at line 170 of file TorcsSound.h.
|
protected |
how fast we need to roll off
Definition at line 171 of file TorcsSound.h.
|
protected |
source id
Definition at line 161 of file TorcsSound.h.
|
protected |
source position
Definition at line 162 of file TorcsSound.h.
|
protected |
source velocity
Definition at line 163 of file TorcsSound.h.
|
protected |
dynamic or static source assignment?
Definition at line 174 of file TorcsSound.h.
|
protected |
just a vector of 0s
Definition at line 164 of file TorcsSound.h.