Sound system in NVP2 consists of SoundManager
and multiple SoundComponent
s. Disabling SoundManager
also disables all the SoundComponent
s.
SoundComponent
(type of Vehicle Component
) is responsible for one sound, e.g. EngineRunningComponent
or EngineStartingComponent
.AudioSource
s are not added manually but are instead generated by the script when the scene is started. Some SoundComponent
s can have more than one AudioSource
- e.g. wheel related SoundComponent
s have one AudioSource
for each wheel.VehicleAudioMixer.mixer
) can be used.Mixer
field must have AudioMixer
assigned. By default VehicleAudioMixer
will be used.
SoundComponent
inherits from VehicleComponent
.
Check VehicleComponent page for more info.
SoundManager
is the main class for handling sound. It contains all the global sound settings and also manages individual SoundComponents.
Also check the Sound page.
Master settings affect all the SoundComponent
s
Each sound component belongs to one of the Audio Mixer groups: Engine, Transmission, SurfaceNoise, Turbo, Suspension, Crash or Other. Here you can add additional effects and modify the sound. One example of this is distortion which is added to the engine sound based on load through the Audio Mixer.
Velocity Magnitude Effect
.Pitch Randomness
field.EngineRunningComponent is a SoundComponent responsible for the engine sound. A pitch based approach using a single pre-recorded engine sound clip is used along with filters to achieve relatively realistic sound.
Big upside of this approach is that only a single clip is required which is ideal for small game studios, as opposed to layering approach where usually tens of clips of engine at different loads, positions and RPMs are used to achieve the engine sound effect. Of course, the downside is that realism suffers.
If you need the layering feature please make a feature request through support.
AudioSource
of EngineRunningComponent
is positioned at Exhaust Position
(Settings tab).Distortion affects volume so when high levels of distortion are used it is usually a good idea to reduce volume range proportionately.
EngineStartStopComponent
plays while the starter is active. AudioSource
of EngineStartComponent
will be positioned at Settings ⇒ Engine Position
.Imitates high-pitched sound of forced induction.
AudioSource
of TurboWhistleComponent
is positioned at Settings ⇒ Engine Position
.