Sounds.
Adding Sounds ♪ ♫
" adding_your_own_models_to_RtR_0.91 "
The engines and wagons can have sound when they are moving.
To add sound create your own sound description file and of course the needed wav file (or use an existing wav file).
The name of the sound description file should be like ‘soundsources_*.list’.
This file is a plain text file, you can edit it with the Notepad.
Each row in this file describes one sound source.
One row has the following structure (check also the original file ‘soundsources.list’):
1234
⇒ unique identifier of an engine or wagon
sound.wav
⇒ the name of the wav file (sampling rate 22KHz, mono PCM file)
loop
⇒ play control of the file, should be ‘loop’ for engines and wagons
The sound file should be created so that it sounds good when it will be played repeated.
The sound should be stored with maximum volume, the program will control the real volume depending on the distance of the engine or wagon from the camera.
Brainbombers.
1.5 vs 1.4
40. Sounds can be defined for objects.
In the file 'soundsources*.list' can be defined one additional sound source for the objects.
The sample defines a controllable sound for Station1.
The records in the file have the following structure (explained with the sample values):
2056
⇒ ID of the object
doublebell.wav
⇒ wav file, mono, 16bit with 22KHZ sample rate
control
⇒ sound source property, supported values:
control
⇒ the source is controllable
once
⇒ will be played once when the camera is near enough
loop
⇒ will be played continuous
rndX
⇒ will be played with random pause with average length of X sec
Brainbombers.
Note.
When making your sound file save it as .wav not .WAV or .Wav ♪ ♫ ♪ ♫ ♪ ♫

Generic Sounds.



