• 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.

XML Sound gauge help

Messages
1
Country
bulgaria
Hi everybody,

Can somebody help me with sound gauge issue:

I have created one custom panel, with one custom gauge to trigger one custom sound. I have installed a custom dsd_xml_sound3 gauge in the ac pannel, I have coppied all the sounds to the respective folder in ./Sounds, the pannel opens and animations are working fine, but no sound comes out...Please help. Thanks.

aircraft.cgf: (my add)

//--------------------------------------------------------
[Window13]
file=FA_Calls.bmp
file_1024=FA_Calls.bmp
file_1024_night=FA_Calls.bmp
size_mm=753
window_size_ratio=1.000
position=0
visible=0
ident=73082
render_3d_window=0
window_size= 0.250, 0.21
window_pos= 0.000, 0.162
update_rate=1

gauge00=FA_Calls!FA_calls, 80,70,53,50
gauge01=FA_Calls_Sound!dsd_xml_sound3, 10,10,19,16 ./Sound/FA_Calls/sound.ini


The XML file:

<Gauge Name="FA_calls" Version="1.0">
<Image Name="FD_Up.bmp"/>
<Element>
<Position X="0" Y="0"/>
<Element>
<Select>
<Value>(L:FA_Calls_pressed, bool)
</Value>
<Case Value="0">
<Image Name="FA_Calls_Down.bmp" Alpha="Yes"/>
</Case>
<Case Value="1">
<Image Name="FA_Calls_Up.bmp" Alpha="Yes"/>
</Case>
</Select>
</Element>
</Element>
<Mouse>
<Area Left="25" Top="21" Width="52" Height="52">
<Tooltip>push to hear message</Tooltip>
<Cursor Type="Hand"/>
<Click Kind="LeftSingle+RightSingle">
(M:Event) 'LeftSingle' scmp 0 == if{ 0 (&gt;L:FA_Sound01,number) 1 (>L:FA_Calls_pressed,bool) }
(M:Event) 'RightSingle' scmp 0 == if{ 1 (&gt;L:FA_Sound01,number) 0 (>L:FA_Calls_pressed,bool) }
</Click>
</Area>
</Mouse>
</Gauge>

the sound.ini file (in the ./sound/fa_calls folder, as requred:

[Config]
MaxSounds=1
ErrorFlag=0
LvarStop=FA_SoundStop

[Sounds]
Sound00=./Sound/FA_Calls/FA_Sound01.wav,100

[LVars]
Lvar00=FA_Sound01


Regards:

Ivo
 
Back
Top