Changes

Jump to navigation Jump to search

Documentation/Engine/Sound/TruckEngine

256 bytes added, 08:38, 18 October 2020
m
no edit summary
Event "engine" plays sound of the engine.<br>
It have has to be 3D event. The event should be routed to the "truck_engine" audio bus.<br>
The event must be looped and its living cycle is controlled by "play" parameter (see bellow).<br>
<br>
Event "exhaust" plays sound of the exhaust.<br>
It have has to be 3D event. The event should be routed to the "truck_exhaust" audio bus.<br>
The event must be looped and its living cycle is controlled by "play" parameter.<br>
<br>
Event "turbo" plays sound of the turbo.<br>
It have has to be 3D event. The event should be routed to the "truck_turbo" audio bus.<br>
The event must be looped and its living cycle is controlled by "play" parameter.<br>
<br>
=== Event "start_bad" ===
Event "start_bad" plays sound of unsuccessful starting of the engine.<br>
It have has to be 3D event. The event should be routed to the "truck_engine" audio bus.<br>
The event is one-shot sound (without loop).<br>
There are no other parameters for the event.<br>
Each engine include ''@include "sound.sui" '' file which contents indirect definition of the events:
<pre>
sounds:4
sounds[]: "engine|/def/vehicle/truck/peterbilt.579/engine/sound_engine.soundref"
sounds[]: "exhaust|/def/vehicle/truck/peterbilt.579/engine/sound_exhaust.soundref"
The record<br>sound: ''"/sound/truck/peterbilt_579.bank"''<br>at the any engine configuration file assigns the sound bank to the engine.
 
== Engine Sound Position ==
 
The 3D position of the engine sound is (by default) 1 m above the first axle of the truck.<br>
This position could be modified by the .soundref file. (see [[Documentation/Engine/Sound#Sound_reference_file|Sound reference file]])
== Engine Sound Example ==
Visit the [[Documentation/Engine/Sound/Downloads|Downloads]] section to get template project or sound examples.
507
edits

Navigation menu