match sound code changes
This commit is contained in:
parent
d5b4f52040
commit
9c9ead857b
2 changed files with 12 additions and 5 deletions
|
@ -54,10 +54,10 @@ chatter_update = func {
|
||||||
if ( substr(chatter_list[chatter_index],
|
if ( substr(chatter_list[chatter_index],
|
||||||
size(chatter_list[chatter_index]) - 4) == ".wav" )
|
size(chatter_list[chatter_index]) - 4) == ".wav" )
|
||||||
{
|
{
|
||||||
var vol =getprop("/sim/sound/atc-chatter-volume");
|
var vol =getprop("/sim/sound/chatter/volume");
|
||||||
if(vol == nil){vol = 0.5;}
|
if(vol == nil){vol = 0.5;}
|
||||||
tmpl = { path : chatter_dir, file : chatter_list[chatter_index] , volume : vol};
|
tmpl = { path : chatter_dir, file : chatter_list[chatter_index] , volume : vol};
|
||||||
if ( getprop("/sim/sound/atc-chatter") ) {
|
if ( getprop("/sim/sound/chatter/enabled") ) {
|
||||||
# go through the motions, but only schedule the message to play
|
# go through the motions, but only schedule the message to play
|
||||||
# if atc-chatter is enabled.
|
# if atc-chatter is enabled.
|
||||||
printlog("info", "update atc chatter ", chatter_list[chatter_index] );
|
printlog("info", "update atc chatter ", chatter_list[chatter_index] );
|
||||||
|
|
|
@ -143,9 +143,16 @@ Started September 2000 by David Megginson, david@megginson.com
|
||||||
</navdb>
|
</navdb>
|
||||||
<sound>
|
<sound>
|
||||||
<volume type="float" userarchive="y">0.8</volume>
|
<volume type="float" userarchive="y">0.8</volume>
|
||||||
<pause type="bool">false</pause>
|
<enabled type="bool">true</enabled>
|
||||||
<atc-chatter type="bool" userarchive="y">false</atc-chatter>
|
<chatter>
|
||||||
<atc-chatter-volume type="double" userarchive="y">0.5</atc-chatter-volume>
|
<enabled type="bool" userarchive="y">false</enabled>
|
||||||
|
<volume type="double" userarchive="y">0.6</volume>
|
||||||
|
</chatter>
|
||||||
|
<effects>
|
||||||
|
<enabled type="bool" userarchive="y">true</enabled>
|
||||||
|
<volume type="float" userarchive="y">0.6</volume>
|
||||||
|
</effects>
|
||||||
|
<device type="string" userarchive="y"/>
|
||||||
<voice type="bool">true</voice>
|
<voice type="bool">true</voice>
|
||||||
<voices>
|
<voices>
|
||||||
<host type="string" write="n">localhost</host>
|
<host type="string" write="n">localhost</host>
|
||||||
|
|
Loading…
Add table
Reference in a new issue