Thread Rating:
  • 1 Vote(s) - 2 Average
  • 1
  • 2
  • 3
  • 4
  • 5
sound.cfg Help
#1
What do the numbers 0~9 at the start of a line represent?
Reply
#2
It's titled. The numbers refer to the specific sound file to be sounded at a specific point in time.

Each list of sound files for a specific 'sound group', e.g. motor, door, etc. are titled above the group.

Example:
Code:
[Motor]
0 = sound\motor\0.wav
1 = sound\motor\1.wav
2 = sound\motor\2.wav

This is the sound group for Motor sounds.
"0 = sound\motor\0.wav" refers to sound file #1 in the Motor sounds group with the path to it after the equal sign.
Mark4211
Hi there! I am a railway technology enthusiast, currently studying at a polytechnic in Singapore.

North South Line for openBVE [NB: MSP - BSH]
Reply
#3
(28 February 2016, 08:05 PM)hi1307 Wrote:   Show/Hide

It gives an "identity" to the sound file for use in train.dat and train editor. The identities then corresponds to the following sound graphs, where the y-axis is the pitch/volume and the x-axis the speed of the train.

 [Image: 88_zps0t9qsgfy.png]
Reply
#4
(28 February 2016, 11:33 PM)Mark4211 Wrote:   Show/Hide

(29 February 2016, 01:46 AM)SMB142J Wrote:   Show/Hide

But at what speed does each sound kick in?
Reply
#5
(29 February 2016, 10:08 AM)hi1307 Wrote:   Show/Hide
x-axis is speed.
Reply
#6
(29 February 2016, 12:02 PM)SMB142J Wrote:   Show/Hide

Then what does the "soundindex" refer to?
Reply
#7
Code:
[Motor]
0 = sound\motor\0.wav
1 = sound\motor\1.wav
2 = sound\motor\2.wav

The numbers (0, 1, 2...) are the sound index.
Joey Foo
The web design/development guy.
"Have you tried the '404' page on SGTrains.com?"
joeyfoo.com @joeyfjj 

Useful links: Download openBVE / C751A
Reply
#8
(15 March 2016, 04:19 PM)hi1307 Wrote:   Show/Hide

Quote:It's titled. The numbers refer to the specific sound file to be sounded at a specific point in time.

Each list of sound files for a specific 'sound group', e.g. motor, door, etc. are titled above the group.

Example:
Code:
[Motor]
0 = sound\motor\0.wav
1 = sound\motor\1.wav
2 = sound\motor\2.wav

This is the sound group for Motor sounds.
"0 = sound\motor\0.wav" refers to sound file #1 in the Motor sounds group with the path to it after the equal sign.

Sound index refer to the sound file it will play.

If I select Sound index 0 to play at a certain speed, the sound will come from sound\motor\0.wav and so on.
Mark4211
Hi there! I am a railway technology enthusiast, currently studying at a polytechnic in Singapore.

North South Line for openBVE [NB: MSP - BSH]
Reply
#9
Ok, then why is there MOTOR_P1 and MOTOR_P2?

Having one works just fine.
Reply
#10
"The #MOTOR_P1 and #MOTOR_P2 sections define two independent sounds that can be played at a given time for the electric motor. The #MOTOR_B1 and #MOTOR_B2 sections define two independent sounds that can be played at a given time for the electric brake."

It gives you two overlapping sounds, I believe.
Joey Foo
The web design/development guy.
"Have you tried the '404' page on SGTrains.com?"
joeyfoo.com @joeyfjj 

Useful links: Download openBVE / C751A
Reply


Possibly Related Threads...
Thread Author Replies Views Last Post
  openBVE train running sound Samuel Lee 1 3,787 03 December 2012, 11:48 PM
Last Post: Mark4211
  Door Closing Sound Problem Seangwong 24 16,311 28 September 2012, 08:31 PM
Last Post: Seangwong

Forum Jump:


Users browsing this thread: 1 Guest(s)