TORCS  1.3.9
The Open Racing Car Simulator
QueueSoundMap_ Struct Reference

A queue containing mappings between sounds and sound sources. More...

#include <SoundInterface.h>

Collaboration diagram for QueueSoundMap_:

Public Attributes

QSoundChar CarSoundData::* schar
 The calculated sound characteristic. More...
 
TorcsSoundsnd
 The raw sound. More...
 
float max_vol
 Max. More...
 
int id
 The id of the car producing the sound, used for retrieving doppler effects etc. More...
 

Detailed Description

A queue containing mappings between sounds and sound sources.

Provides a mapping various sound sources and actual sounds. This is used for the case where we have many sound sources emitting exactly the same sound and where we don't allow more than 1 source to play simultaneously. This structure can be used to sort competing sources in order to decide which one is going to take priority.

See also
SortSingleQueue(), SetMaxSoundChar()

Definition at line 63 of file SoundInterface.h.

Member Data Documentation

◆ id

int QueueSoundMap_::id

The id of the car producing the sound, used for retrieving doppler effects etc.

Definition at line 67 of file SoundInterface.h.

◆ max_vol

float QueueSoundMap_::max_vol

Max.

Definition at line 66 of file SoundInterface.h.

◆ schar

QSoundChar CarSoundData::* QueueSoundMap_::schar

The calculated sound characteristic.

Definition at line 64 of file SoundInterface.h.

◆ snd

TorcsSound* QueueSoundMap_::snd

The raw sound.

Definition at line 65 of file SoundInterface.h.


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