Basic management messages
Basic management for the sound generatorMessages sent once by state change
Messages sent regularly
Traffic noise management
The exploiting application handles up to 8 traffic vehicles, corresponding to 8 possible synthesis slots. These 8 vehicles must be chosen by the simulator depending on their contribution to the sound scene, for example by selecting the closest ones. Angles are in radians, 0 is a front source, -pi/2 is left, +pi/2 is right. Angles superior to pi or inferior to -pi are acceptedMessages sent once by state change
Messages sent regularly
Harmonic sources management
The application handles up to 10 harmonic sources. Each of them can be controlled with the following messages:Messages sent once by state change
Tires noises of the main vehicle
Tires Noise has to be updated for each wheel by providing information about the current slippynessMessages sent once by state change
KEY WORD (Address Pattern) | TYPE & COMMENTS |
|---|---|
| GROUND_INDEX | 0 = asphalt, 1 = concrete, 2 = grass, 3 = cobblestone (integer) |
| SCREECH | 4 x slipping intensity -100% à 100% (float in this order : front left, front right, rear left, rear right) |
4 x slipping angle of each wheel in radians (float in this order : front left, front right, rear left, rear right) | |
| WHEEL_ ADHERENCE | 4 x (int wheel index, float stickiness coefficient) Ex : 0 0.1 1 0.3 2 0.7 3 0.7 |
0.7< float stickiness coefficient <1: dry 0.2< float stickiness coefficient <0.7:wet 0.1< float stickiness coefficient <0.2 : snowy |
Weather management
Weather noise managementMessages sent once by state change
Additional noises
Loading orders of additional simulation noises.Messages sent once by state change.
Sound files playing
Supported functions:- sendSoundLoad : loads a sound
- sendSoundPlay : play a sound (looping available)
- sendSoundStop : stops a sound play
- sendSoundPause : pauses a sound play
- sendSoundVolume : sets the sound volume
- the slots indexes are >=1 and <=10
- .wav extension is appended to the file name
Messages sent once by state change
| KEYWORD (Address Pattern) | TYPE | COMMENTS |
|---|---|---|
| SOUND_LOAD | sound Id (Integer, 0<id<32765) | loads a file to play |
| File Name (String) | ||
| SOUND_PLAY | Slot index (int) | Starts playing the sound #Id at slot #Slot index. TypeSpat: 0 = not localized, 1=attached to a vehicle, 2 = attached to a point Gain is linear (directly multiplied with the signal). Azimut in radians, Distance and DistanceMax in meters. DistanceMAx corresponsd to the distance from the source cannot be heard anymore |
| sound Id (int) | ||
| play in loop (1/0 Int) | ||
Gain (float) TypeSpat (int) Azimut (float, in rad) Distance (float, in m) DistanceMax (float, in m) | ||
| SOUND_STOP | Slot index (int) | Stops playing a sound |
| SOUND_PAUSE | Slot index (int) | Pause the playback of a sound |
| SOUND_RESUME | Slot index (int) | Resume a paused sound |
| SOUND_VOLUME | Slot index (int) | Changes the volume of a sound. The gain is linear (value directly multiplied to the signal) |
| Gain (float) | ||
| SOUND_UPDATE_POSITION | Slot index (int) | Updates the position of the sound at #slot index |
| Azimut (float, in rad) | ||
| Distance (float, in m) |
Error and warning messages
Messages sent to the main simulation application when required.Messages sent once by state change
Start, stop, state management
The main simulation application has to start and stop Car Sound Simulator.Message sent periodically to the main application.
Head-tracking
Message sent to locate the position of the listener’s head for head-tracked binaural renderingMessage sent periodically to the main application
KEY WORD (Address Pattern) | TYPE | COMMENTS |
|---|---|---|
| HEAD-POSITION | X (float) Y (float) Z (float) rotZ (float) rotY (float) rotX (float) | Position of the listener’s head in space. Distances are in meters, angles in radians. X points front Y points to the right Z points below The azimuth angle is then rotZ, with a positive angle when the listener turns his head to the right. Elevation angle is then rotY with a positive angle when the listener raises the head. |