Sound file question

Railhead001

New member
Hello all,

Is it possible when addign sound effects from the DLS such as "construction" sounds or crickets chirping, to lower the volume when placing them on the layout or route from their initial setting without adjusting volume controls on your pc ?

RH001
 
A solution local to your installation of Trainz only is to modify the config of the sound asset. Somewhere in config.txt you will find a section or container called soundscript. It supports the use of a tag called volume. The default setting of volume is 1, meaning the gain is 100% of whatever volume the sound file is putting out. You can reduce it by substituting a smaller number, between 0 and 1 (I presume it can’t be negative).

If there is no volume tag already in the soundscript container, you can add one and specify your preferred value.

Look up soundscript in the Trainz Wiki for more detail.

In fact for any questions like this, it’s always instructive to open an example asset for edit and inspect its config. There are often obvious clues in there about how the asset works and what terms you might use as keywords for Wiki searches in order to teach yourself more.
 
Last edited:
A solution local to your installation of Trainz only is to modify the config of the sound asset. Somewhere in config.txt you will find a section or container called soundscript. It supports the use of a tag called volume. The default setting of volume is 1, meaning the gain is 100% of whatever volume the sound file is putting out. You can reduce it by substituting a smaller number, between 0 and 1 (I presume it can’t be negative).

If there is no volume tag already in the soundscript container, you can add one and specify your preferred value.

Look up soundscript in the Trainz Wiki for more detail.

In fact for any questions like this, it’s always instructive to open an example asset for edit and inspect its config. There are often obvious clues in there about how the asset works and what terms you might use as keywords for Wiki searches in order to teach yourself more.

Thank you for the suggestions !
 
Teach a man to fish, as the proverb has it.

..or you could edit the wav file in something like Audacity and reduce the volume that way. It does involve learning yet another bit of software and can lead to errors if the file is saved with the wrong parameters. I think the soundscript method is simpler and safer. :)
 
Last edited:
Back
Top