FGCom: add silence threshold setting
Require commit 3254f54f9ed8917f7cd21bcdb8b3e74b9d4c14a9 from flightgear
This commit is contained in:
parent
381aeb918e
commit
442aee6499
2 changed files with 37 additions and 0 deletions
|
@ -154,6 +154,13 @@
|
|||
<node>/sim/sound/atc/volume</node>
|
||||
</chunk>
|
||||
|
||||
<chunk>
|
||||
<name>silence-threshold</name>
|
||||
<type>double</type>
|
||||
<format>SILENCE_THD=%1.1f</format>
|
||||
<node>/sim/fgcom/silence-threshold</node>
|
||||
</chunk>
|
||||
|
||||
</output>
|
||||
|
||||
</generic>
|
||||
|
|
|
@ -237,6 +237,36 @@
|
|||
<live>true</live>
|
||||
<property>/sim/fgcom/speaker-level</property>
|
||||
</text>
|
||||
|
||||
<text>
|
||||
<row>5</row>
|
||||
<col>0</col>
|
||||
<label>Silence threshold:</label>
|
||||
<halign>right</halign>
|
||||
</text>
|
||||
<slider>
|
||||
<row>5</row>
|
||||
<col>1</col>
|
||||
<halign>left</halign>
|
||||
<name>silence-thd</name>
|
||||
<label></label>
|
||||
<min>-60.0</min>
|
||||
<max>0.0</max>
|
||||
<step>1</step>
|
||||
<property>/sim/fgcom/silence-threshold</property>
|
||||
<binding>
|
||||
<command>dialog-apply</command>
|
||||
<object-name>silence-thd</object-name>
|
||||
</binding>
|
||||
</slider>
|
||||
<text>
|
||||
<row>5</row>
|
||||
<col>2</col>
|
||||
<label>1234</label>
|
||||
<format>%.1f</format>
|
||||
<live>true</live>
|
||||
<property>/sim/fgcom/silence-threshold</property>
|
||||
</text>
|
||||
</group>
|
||||
|
||||
<hrule/>
|
||||
|
|
Loading…
Reference in a new issue