Difference between revisions of "Documentation/Engine/Sound/TruckTransmission"

From SCS Modding Wiki
Jump to navigation Jump to search
Line 1: Line 1:
=== Sounds - The truck transmission and the retarder ===
+
= Sounds - The truck transmission and the retarder =
 
The next group of the sounds of the truck are sounds of the transmission and the retarder.
 
The next group of the sounds of the truck are sounds of the transmission and the retarder.
  
 
== Retarder ==
 
== Retarder ==
  
Event "retarder" plays sound of the retarder.<br>
+
Event "retarder" plays sound of the retarder. It has to be 3D event. The event should be routed to the "truck_effects" audio bus.
It have to be 3D event. The event should be routed to the "truck_effects" audio bus.<br>
+
 
The event must be looped.<br>
+
The event must be looped and following event parameters must exist:
<br>
+
* retarder - the value is in the range <0 - 1> and represents the retarder activity
These event parameters must exist:
+
* trans_rpm - the value is in the range <0 - 3000> and represents the rpm of the transmission
* retadred<br>the value is in the range <0 - 1><br>value represents the retarder activity
 
* trans_rpm<br>the value is in the range <0 - 3000><br>value represents the rpm of the transmission
 
  
 
== Gear grind ==
 
== Gear grind ==
  
Sound of grinding of the transmission gears.
+
Sound of grinding of the transmission gears. It has to be 3D event. The event should be routed to the "truck_effects" audio bus.
It have to be 3D event. The event should be routed to the "truck_effects" audio bus.<br>
+
 
The event must be looped. There are no parameters.<br>
+
The event must be looped. There are no parameters.
  
 
== Gear wrong ==
 
== Gear wrong ==
  
Sound effect of incorrect gearbox engagement.
+
Sound effect of incorrect gearbox engagement. It has to be 3D event. The event should be routed to the "truck_effects" audio bus.
It have to be 3D event. The event should be routed to the "truck_effects" audio bus.<br>
+
 
 
This is a simple ("one shot") event.
 
This is a simple ("one shot") event.
  
== Sound Configuration ==
+
= Sound Configuration =
  
The group of sounds configuration is stored in the "accessory_transmission_data" data.<br>
+
The group of sounds configuration is stored in the "accessory_transmission_data" data.
There are not mandatory events but there are not default events too. Only the defined sounds will be played.<br>
+
 
There is array "sounds" which contents specification for the events:
+
There is no mandatory events but there is no default events either. Only the defined sounds will be played. There is array "sounds" which contents specification for the events:
 
* retarder
 
* retarder
 
* gear_grind
 
* gear_grind
 
* gear_wrong
 
* gear_wrong
<br>
+
 
Example:<br>
+
== Example ==
There are configuration files of transmissions for the "Peterbilt 579" at the folder "\def\vehicle\truck\peterbilt.579\transmission".<br>
+
 
 +
There are configuration files for transmissions for the "Peterbilt 579" inside folder "/def/vehicle/truck/peterbilt.579/transmission".
 +
 
 
Each accessory include ''@include "sound.sui" '' file which contents indirect definition of the events:
 
Each accessory include ''@include "sound.sui" '' file which contents indirect definition of the events:
 
<pre>
 
<pre>

Revision as of 15:06, 15 October 2020

Sounds - The truck transmission and the retarder

The next group of the sounds of the truck are sounds of the transmission and the retarder.

Retarder

Event "retarder" plays sound of the retarder. It has to be 3D event. The event should be routed to the "truck_effects" audio bus.

The event must be looped and following event parameters must exist:

  • retarder - the value is in the range <0 - 1> and represents the retarder activity
  • trans_rpm - the value is in the range <0 - 3000> and represents the rpm of the transmission

Gear grind

Sound of grinding of the transmission gears. It has to be 3D event. The event should be routed to the "truck_effects" audio bus.

The event must be looped. There are no parameters.

Gear wrong

Sound effect of incorrect gearbox engagement. It has to be 3D event. The event should be routed to the "truck_effects" audio bus.

This is a simple ("one shot") event.

Sound Configuration

The group of sounds configuration is stored in the "accessory_transmission_data" data.

There is no mandatory events but there is no default events either. Only the defined sounds will be played. There is array "sounds" which contents specification for the events:

  • retarder
  • gear_grind
  • gear_wrong

Example

There are configuration files for transmissions for the "Peterbilt 579" inside folder "/def/vehicle/truck/peterbilt.579/transmission".

Each accessory include @include "sound.sui" file which contents indirect definition of the events:

	sounds: 3
	sounds[]: "retarder|/sound/truck/default/retarder.soundref"
	sounds[]: "gear_grind|/sound/truck/default/effects_gear_grind.soundref"
	sounds[]: "gear_wrong|/sound/truck/default/effects_gear_wrong.soundref"

Sound Position

The 3D position of this sounds is (by default) the same position as the engine.
This position could be modified by the .soundref file. (see Sound reference file)