Difference between revisions of "Car sounds"

From VDrift
Jump to: navigation, search
(Created page with "==Shared sounds== VDrift has a number of sounds that are used for all cars. They can be found in the carparts directory. <pre> brake.wav - Brake engage sound (in driver...")
 
 
(10 intermediate revisions by the same user not shown)
Line 2: Line 2:
 
VDrift has a number of sounds that are used for all cars. They can be found in the carparts directory.
 
VDrift has a number of sounds that are used for all cars. They can be found in the carparts directory.
 
<pre>
 
<pre>
brake.wav        - Brake engage sound (in driver view)
+
brake.wav        # Brake engage sound (in driver view)
bump_front.wav  - Front suspension bump sound
+
handbrake.wav    # Handbrake engage sound (in driver view)
bump_rear.wav    - Rear suspension bump sound
+
gear.wav        # Gear shift sound (in driver view)
crash.wav        - Collision sound
+
bump_front.wav  # Front suspension bump sound
gear.wav        - Gear shift sound (in driver view)
+
bump_rear.wav    # Rear suspension bump sound
grass.wav        - Tires rolling over grass
+
crash.wav        # Collision sound
gravel.wav      - Tires rolling over gravel
+
grass.wav        # Tires rolling over grass
handbrake.wav    - Handbrake engage sound (in driver view)
+
gravel.wav      # Tires rolling over gravel
tire_squeal.wav  - Tire squeal(skidding over asphalt) sound
+
tire_squeal.wav  # Tire squeal(skidding over asphalt) sound
 +
wind.ogg        # Wind noise
 
</pre>
 
</pre>
 +
 
==Individual sounds==
 
==Individual sounds==
Car engine sounds are stored per car. Default configuration is a single sound.
+
Car engine sounds are stored per car. Default minimum configuration is a single sound.
* engine.wav      - Engine sound at 7000rpm  
+
<pre>
 +
engine.wav      # Engine sound at 7000rpm  
 +
</pre>
  
===Advanced engine sound setup===
+
====Advanced engine sound setup====
VDrift supports multiple engine sounds with interpolation(blending). To use this feature a <CARNAME>.aud text file has to be created containing sound information.
+
VDrift supports multiple engine sounds with interpolation (blending). To use this feature a <CARNAME>.aud text file has to be created containing sound information. It can contain an arbitrary number of sections, one per sound file.
 +
<pre>
 +
[sound1]
 +
filename=engine_accel_1.wav  # relative path to the sound file
 +
MinimumRPM=1                # minimum engine rpm to use this sound for
 +
MaximumRPM=1500              # maximum engine rpm to use this sound for
 +
NaturalRPM=1000              # rpm this sound has been recorded at
 +
power=on                    # (optional) use this sound for throttle open(on) or closed(off); default is both
 +
</pre>
 +
The rpm ranges of two neighboring sounds can(should) overlap to create a smooth transition.
  
 
Example TL2/TL2.aud:
 
Example TL2/TL2.aud:
 
<pre>
 
<pre>
 
[poweroff1]
 
[poweroff1]
filename=sounds/1kbehind.wav # relative path to the sound file
+
filename=sounds/1kbehind.wav
MinimumRPM=1                 # minimum engine rpm to use this sound for
+
MinimumRPM=1
MaximumRPM=1500               # maximum engine rpm
+
MaximumRPM=1500
NaturalRPM=1000               # rpm this sound has been recorded at
+
NaturalRPM=1000
power=off                     # optional, use this sound for throttle open(on) or closed(off); default is both
+
power=off
  
 
[poweron1]
 
[poweron1]

Latest revision as of 07:58, 5 April 2013

Shared sounds

VDrift has a number of sounds that are used for all cars. They can be found in the carparts directory.

brake.wav        # Brake engage sound (in driver view)
handbrake.wav    # Handbrake engage sound (in driver view)
gear.wav         # Gear shift sound (in driver view)
bump_front.wav   # Front suspension bump sound
bump_rear.wav    # Rear suspension bump sound
crash.wav        # Collision sound
grass.wav        # Tires rolling over grass
gravel.wav       # Tires rolling over gravel
tire_squeal.wav  # Tire squeal(skidding over asphalt) sound
wind.ogg         # Wind noise

Individual sounds

Car engine sounds are stored per car. Default minimum configuration is a single sound.

engine.wav       # Engine sound at 7000rpm 

Advanced engine sound setup

VDrift supports multiple engine sounds with interpolation (blending). To use this feature a <CARNAME>.aud text file has to be created containing sound information. It can contain an arbitrary number of sections, one per sound file.

[sound1]
filename=engine_accel_1.wav  # relative path to the sound file
MinimumRPM=1                 # minimum engine rpm to use this sound for
MaximumRPM=1500              # maximum engine rpm to use this sound for
NaturalRPM=1000              # rpm this sound has been recorded at
power=on                     # (optional) use this sound for throttle open(on) or closed(off); default is both

The rpm ranges of two neighboring sounds can(should) overlap to create a smooth transition.

Example TL2/TL2.aud:

[poweroff1]
filename=sounds/1kbehind.wav
MinimumRPM=1
MaximumRPM=1500
NaturalRPM=1000
power=off

[poweron1]
filename=sounds/2kbehind.wav
MinimumRPM=1
MaximumRPM=2500
NaturalRPM=2000
power=on

[poweroff2]
filename=sounds/5kbehind.wav
MinimumRPM=1000
NaturalRPM=4650
MaximumRPM=4500
power=off

[poweron2]
filename=sounds/4kbehind.wav
MinimumRPM=2000
NaturalRPM=3560
MaximumRPM=4000
power=on

[poweroff3]
filename=sounds/6kbehind.wav
MinimumRPM=4000
NaturalRPM=5130
MaximumRPM=10000
power=off

[poweron3]
filename=sounds/7kbehind.wav
MinimumRPM=3500
NaturalRPM=6130
MaximumRPM=10000
power=on