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],
|
||||
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;}
|
||||
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
|
||||
# if atc-chatter is enabled.
|
||||
printlog("info", "update atc chatter ", chatter_list[chatter_index] );
|
||||
|
|
|
@ -143,9 +143,16 @@ Started September 2000 by David Megginson, david@megginson.com
|
|||
</navdb>
|
||||
<sound>
|
||||
<volume type="float" userarchive="y">0.8</volume>
|
||||
<pause type="bool">false</pause>
|
||||
<atc-chatter type="bool" userarchive="y">false</atc-chatter>
|
||||
<atc-chatter-volume type="double" userarchive="y">0.5</atc-chatter-volume>
|
||||
<enabled type="bool">true</enabled>
|
||||
<chatter>
|
||||
<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>
|
||||
<voices>
|
||||
<host type="string" write="n">localhost</host>
|
||||
|
|
Loading…
Reference in a new issue