Difference between revisions of "Car sounds"

From VDrift
Jump to: navigation, search
(Advanced engine sound setup)
 
(3 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>
  
Line 16: Line 17:
 
Car engine sounds are stored per car. Default minimum configuration is a single sound.
 
Car engine sounds are stored per car. Default minimum configuration is a single sound.
 
<pre>
 
<pre>
engine.wav      - Engine sound at 7000rpm  
+
engine.wav      # Engine sound at 7000rpm  
 
</pre>
 
</pre>
  
Line 23: Line 24:
 
<pre>
 
<pre>
 
[sound1]
 
[sound1]
filename=engine_accel_1.wav   # relative path to the sound file
+
filename=engine_accel_1.wav # relative path to the sound file
MinimumRPM=1                 # minimum engine rpm to use this sound for
+
MinimumRPM=1                 # minimum engine rpm to use this sound for
MaximumRPM=1500               # maximum engine rpm
+
MaximumRPM=1500             # maximum engine rpm to use this sound for
NaturalRPM=1000               # rpm this sound has been recorded at
+
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
+
power=on                     # (optional) use this sound for throttle open(on) or closed(off); default is both
 
</pre>
 
</pre>
 
The rpm ranges of two neighboring sounds can(should) overlap to create a smooth transition.
 
The rpm ranges of two neighboring sounds can(should) overlap to create a smooth transition.

Latest revision as of 08: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