1
0
Fork 0

Don't play DME ident if no colocated DME.

This commit is contained in:
curt 2001-03-10 00:06:39 +00:00
parent 6e91c958e3
commit c763c795ad
2 changed files with 5 additions and 5 deletions

View file

@ -274,7 +274,7 @@ FGRadioStack::update()
globals->get_soundmgr()->play_once( "nav1-vor-ident" );
++nav1_play_count;
}
} else if ( nav1_play_count < 5 ) {
} else if ( nav1_play_count < 5 && nav1_has_dme ) {
// play DME ident
if ( !globals->get_soundmgr()->is_playing("nav1-vor-ident") &&
!globals->get_soundmgr()->is_playing("nav1-dme-ident") ) {

View file

@ -1192,10 +1192,10 @@ static void fgIdleFunction ( void ) {
<< " Bps = " << s1->get_sample()->getBps()
<< " Stereo = " << s1->get_sample()->getStereo() );
// s2 = new FGSimpleSound( "Sounds/corflaps.wav" );
FGMorse mmm;
mmm.init();
s2 = mmm.make_ident( "JLI" );
s2 = new FGSimpleSound( "Sounds/corflaps.wav" );
// FGMorse mmm;
// mmm.init();
// s2 = mmm.make_ident( "JLI" );
s2->set_volume( 0.3 );
globals->get_soundmgr()->add( s2, "flaps" );
}