Elvas Tower: Sounds xxxxx.SMS syncronisatie - Elvas Tower

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Sounds xxxxx.SMS syncronisatie Rate Topic: -----

#1 User is offline   QJ-6811 

  • Conductor
  • Group: Status: Active Member
  • Posts: 385
  • Joined: 27-December 15
  • Gender:Male
  • Simulator:MSTS / Open Rails
  • Country:

Posted 30 April 2020 - 04:06 AM

Sometimes you have a certain sound played delayed when you switch between the cabin (xxxxxCAB.SMS) and external (xxxxxENG.SMS).
Such short sounds as "hiss of brake cylinders" or "short steam whistle" is actually incorrect, but not always really annoying.

With functions that are "on or off" for longer periods of time, it can become "annoying", think of "open / close doors" or certainly with "Diesel startup / shutdown".

Example:

Stream (
Priority ( 7 )
Triggers ( 4
	Initial_Trigger ( DisableTrigger  ( 4 ) )
	Discrete_Trigger ( 23 PlayOneShot ( 1 File ( "CC72000-dieselstart_cab.wav" -1 ) SelectionMethod ( SequentialSelection ) ) )
	Discrete_Trigger ( 23 EnableTrigger ( 4 ) )
	Discrete_Trigger ( 24 PlayOneShot ( 1 File ( "CC72000-dieselstop_cab.wav" -1 ) SelectionMethod ( SequentialSelection ) ) )
	)
)

At start (trigger_23) the "diesel start" sound is played. Via "sound debug" you can see that the PlayoneShot is started in the other xxxxx.SMS file. However, this is only audible if you switch from internal to external, for example.
IOW, you start the diesel, drive a few minutes, you go to extern_view and you still hear the diesel start ......

I actually see that this only goes wrong with "PlayOneShot" sounds.
IOW, if you change (all?) "PlayOneShot" sounds to "StartLoop / Release", you have no more delayed sounds.

Example:

Stream (
Priority ( 7 )
Triggers ( 3
	Discrete_Trigger ( 23 PlayOneShot ( 1 File ( "CC72000-dieselstart_cab.wav" -1 ) SelectionMethod ( SequentialSelection ) ) )
	Discrete_Trigger ( 23 StartLoopRelease ( 1 File ( "stilte-S.wav" -1 ) SelectionMethod ( SequentialSelection ) ) )
	Discrete_Trigger ( 24 ReleaseLoopRelease () )
	)
)
Stream (
Priority ( 7 )
Triggers ( 5
	Initial_Trigger ( DisableTrigger  ( 3 ) )
	Discrete_Trigger ( 23 EnableTrigger ( 3 ) )
	Discrete_Trigger ( 24 PlayOneShot ( 1 File ( "CC72000-dieselstop_cab.wav" -1 ) SelectionMethod ( SequentialSelection ) ) )
	Discrete_Trigger ( 24 StartLoopRelease ( 1 File ( "stilte-S.wav" -1 ) SelectionMethod ( SequentialSelection ) ) )
	Discrete_Trigger ( 23 ReleaseLoopRelease () )
	)
)


At start (trigger_23) the "diesel start" sound is played. Via "sound debug" you now see that in the other xxxxx.SMS file the loop starts almost immediately, so now "silence" and no more delayed sound.
Although an improvement, it is still a disadvantage that it is still not 100% synchronous. And of course that you have to adjust "all" PlayOneShots and that many unnecessary loops remain in the background. (performance ...?).

OK, a solution regarding synchronization is to make both active, so as an example:

Activation ( 	CabCam ( ) 	ExternalCam ( )	Distance (100) 	)


but now of course all sounds are audible ......

Ask:
Although from the point of view of the xxxxx.sms files it is not a real error, is there may be a possibility to make both xxxxx.sms files "active", and then turn the volume on or off in the respective xxxxx.sms?

Something like:
xxxxx_trigger ( CabCam SetVolume ( 1.0 ) )
xxxxx_trigger ( ExternalCam SetVolume ( 0.0 ) )

Or is there already a possibility?

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users