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 (>L:FA_Sound01,number) 1 (>L:FA_Calls_pressed,bool) }
(M:Event) 'RightSingle' scmp 0 == if{ 1 (>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
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 (>L:FA_Sound01,number) 1 (>L:FA_Calls_pressed,bool) }
(M:Event) 'RightSingle' scmp 0 == if{ 1 (>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
