• Which the release of FS2020 we see an explosition of activity on the forun and of course we are very happy to see this. But having all questions about FS2020 in one forum becomes a bit messy. So therefore we would like to ask you all to use the following guidelines when posting your questions:

    • Tag FS2020 specific questions with the MSFS2020 tag.
    • Questions about making 3D assets can be posted in the 3D asset design forum. Either post them in the subforum of the modelling tool you use or in the general forum if they are general.
    • Questions about aircraft design can be posted in the Aircraft design forum
    • Questions about airport design can be posted in the FS2020 airport design forum. Once airport development tools have been updated for FS2020 you can post tool speciifc questions in the subforums of those tools as well of course.
    • Questions about terrain design can be posted in the FS2020 terrain design forum.
    • Questions about SimConnect can be posted in the SimConnect forum.

    Any other question that is not specific to an aspect of development or tool can be posted in the General chat forum.

    By following these guidelines we make sure that the forums remain easy to read for everybody and also that the right people can find your post to answer it.

FS2004 playing sounds consecutively

Messages
1,468
Country
italy
How is this done?
I have <Click>1 (>L:Sound_BAsafety,enum)</Click> which lasts about 5 mins
and I want to follow that with another sound
1 (>L:Sound_mes2,enum)
a short time after the first sound has played.
How do I set that up?
vololiberista
 
There is no way to know when a sound file has finished playing, so you'll have to set up a timer with the exact number of seconds delay. Play your second sound when the timer expires.

Here's a quick example of a 13 second delay:

Code:
    <!-- GROUND CART SOUNDS -->
    (L:T38_StartGroundCart,bool)
    (L:CartRunning,bool) !
    and
    if{
    1 (>L:XMLSND25,bool)
    1 (>L:CartRunning,bool)
    (E:LOCAL TIME, seconds) 13 + (>L:CartTimer,enum)
    }

    (L:CartTimer,enum) (E:LOCAL TIME, seconds)  &lt;
    (L:CartRunning,bool)
    and
    if{ 2 (>L:XMLSND26,bool) }
 
Nice!

I have wanted a APU control sound for just this use; turbine startup, then the 'loop' would blend in smoothly.


Thanks Bill L for that.
 
How is this done?
I have <Click>1 (>L:Sound_BAsafety,enum)</Click> which lasts about 5 mins
and I want to follow that with another sound
1 (>L:Sound_mes2,enum)
a short time after the first sound has played.
How do I set that up?
vololiberista

If you're using my gauge, you can monitor the control variable for the sound.
The gauge will set it back to zero when the sound stops playing.

Doug
 
If you're using my gauge, you can monitor the control variable for the sound.
The gauge will set it back to zero when the sound stops playing.

Doug

Hi Doug,
Yes I do use your gauge :-)
Can you explain a little more what you mean and how it's done.
Many thanks
vololiberista
 
Something like this:


Code:
<Update>
(L:Monitoring_Sound_1, bool)
if{
	(L:Sound_1_Control, number) !
	if{
		0 (>L:Monitoring_Sound_1, bool)
		1 (>L:Sound_2_Control, number)
	}
}
</Update>

...

<Click>
1 (>L:Sound_1_Control, number)
1 (>L:Monitoring_Sound_1, bool)
</Click>

Doug
 
Update:-
It works Doug, many thanks. But life is never quite that simple! I had to insert two L:vars to turn on the steward's light on the Captain's OH panel when the second msg plays. The aim is to play a cabin safety briefing and then when it is finished for the cabin to call the flightdeck to say they are ready. So I ended up with:-
vololiberista
Code:
<Gauge Name="Safety Vid" Version="1.0">
<Image Name="SWAP.bmp"/>
<Update>
(L:Monitor_Sound, bool)
if{ (L:Sound_BAsafety,enum) ! if{ 0 (>L:Monitor_Sound, bool) 1 (>L:Sound_mes2,enum) 1 (>L:CABIN CALL,number) (P:local time, seconds) 20.5 + (>L:CAB LIGHT 2,number) and }
}
</Update>

<Element>
      <Select>
         <Value>(L:safety,number)</Value>
         <Case Value="0">
            <Image Name="SWAP.bmp"/>
         </Case>
         <Case Value="1">
            <Image Name="SWAP.bmp"/>
         </Case>
      </Select>
   </Element>

   <Mouse>
<Tooltip>Cabin Safety Briefing</Tooltip>
  <Cursor Type="Hand" /> 
         <Click>1 (>L:Sound_BAsafety,enum)
1 (>L:Monitor_Sound, bool)
</Click>
   </Mouse>
</Gauge>
 
Back
Top