• 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 DSD Sounds readout?

Messages
206
Country
unitedkingdom
Hi,

This is a question to Doug or indeed anyone else who knows the answer: Can I do this, I am using the dsd_xml_sound3 gauge:

Code:
<Gauge Name="HYD AUX Sound gauge" Version="4.0">
<Element>
  <Select>
    <Value>
(L:HYDAUXsw, bool) (L:ElecAVAIL, enum) 1 ==  &amp;&amp; (L:GH_Sound13,number) 2 != &amp; if{ 2 (&gt;L:GH_Sound13,number) } 
(L:HYDAUXsw, bool) ! (L:ElecAVAIL, enum) 0 == || (L:GH_Sound13,number) 0 != &amp;&amp; if{ 0 (&gt;L:GH_Sound13,number) } 
    </Value>
  </Select>
</Element>
</Gauge>

ie. Can I read back the value that I sent to the sound gauge to see what is currently happening? I want to avoid sending the "play continuously" command too many times... I have been having some strange behavior with the sounds where after a while (about 45 mins) the sound for my whole PC crackles and dies. It is then gone until I close FS whereupon, after a while, it seems to get fixed... I don't really /know/ what is the cause, but since it is a recent problem and sound related, my guess has to be that it is related to the sounds I am adding in my newer xml gauges...

Cheers,
Geoff
 
What you are proposing should be fine. The gauge takes no action if the control variable has the same value it had on the previous update.
Also, you can check the value of the control variable on each update. It will stay at a value of 2 until you change it. You can always check whether a sound is playing this way. If the control value is 0, the sound is not playing. If it is non-zero, then the sound is playing. 1 indicates a play once sound and 2 indicates the sound is looping.

Doug
 
Good stuff, thanks. Hopefully the repeating sound calls were the culprit of my strange sound cutouts - only testing will tell...!

Geoff
 
Back
Top