1
0
Fork 0

Set a rapid fall off rate for interior cockpit sounds so they won't be heard

from the tower view.
This commit is contained in:
curt 2004-04-28 03:57:50 +00:00
parent 0aabc112b4
commit dd4d116e00
2 changed files with 8 additions and 0 deletions

View file

@ -52,6 +52,8 @@ bool FGBeacon::init() {
}
inner = new SGSoundSample( inner_buf, INNER_SIZE, BYTES_PER_SECOND );
inner->set_reference_dist( 10.0 );
inner->set_max_dist( 20.0 );
// Make middle marker beacon sound
len= (int)(MIDDLE_DIT_LEN / 2.0 );
@ -70,6 +72,8 @@ bool FGBeacon::init() {
memcpy( ptr, middle_dah, MIDDLE_DAH_LEN );
middle = new SGSoundSample( middle_buf, MIDDLE_SIZE, BYTES_PER_SECOND );
middle->set_reference_dist( 10.0 );
middle->set_max_dist( 20.0 );
// Make outer marker beacon sound
len= (int)(OUTER_DAH_LEN * 3.0 / 4.0 );
@ -83,6 +87,8 @@ bool FGBeacon::init() {
memcpy( ptr, outer_dah, OUTER_DAH_LEN );
outer = new SGSoundSample( outer_buf, OUTER_SIZE, BYTES_PER_SECOND );
outer->set_reference_dist( 10.0 );
outer->set_max_dist( 20.0 );
return true;
}

View file

@ -262,6 +262,8 @@ SGSoundSample *FGMorse::make_ident( const string& id, const int freq ) {
// 4. create the simple sound and return
SGSoundSample *sample = new SGSoundSample( buffer, length,
BYTES_PER_SECOND );
sample->set_reference_dist( 10.0 );
sample->set_max_dist( 20.0 );
return sample;
}