]> git.mxchange.org Git - flightgear.git/commitdiff
Sync with SimGear.
authorehofman <ehofman>
Sat, 12 Nov 2005 12:31:11 +0000 (12:31 +0000)
committerehofman <ehofman>
Sat, 12 Nov 2005 12:31:11 +0000 (12:31 +0000)
src/ATC/AIPlane.cxx
src/ATC/ATC.cxx
src/Sound/beacon.cxx
src/Sound/morse.cxx

index 8d501910d971d905a30e29922ce9ae69ff40d463..a20bffcb35426dea8722c4b9569fcf0ac24f4258 100644 (file)
@@ -188,7 +188,7 @@ void FGAIPlane::Render(const string& refname, bool repeating) {
                int len;
                unsigned char* buf = vPtr->WriteMessage((char*)pending_transmission.c_str(), len, voice);
                if(voice) {
-                       SGSoundSample* simple = new SGSoundSample(buf, len, 8000, false);
+                       SGSoundSample* simple = new SGSoundSample(buf, len, 8000);
                        // TODO - at the moment the volume is always set off comm1 
                        // and can't be changed after the transmission has started.
                        simple->set_volume(5.0 * fgGetDouble("/instrumentation/comm[0]/volume"));
index 55a9dc814c50e9ea1cc8169b6b0aefac3ac8e080..fe20322b176bb0cb11b6f8140dce03a7238a1043 100644 (file)
@@ -227,7 +227,7 @@ void FGATC::Render(string& msg, const string& refname, bool repeating) {
                unsigned char* buf = _vPtr->WriteMessage((char*)msg.c_str(), len, _voice);
                if(_voice) {
                        SGSoundSample *simple
-                            = new SGSoundSample(buf, len, 8000, false);
+                            = new SGSoundSample(buf, len, 8000);
                        // TODO - at the moment the volume is always set off comm1 
                        // and can't be changed after the transmission has started.
                        simple->set_volume(5.0 * fgGetDouble("/instrumentation/comm[0]/volume"));
index 2a3ba64398c9e8b6bd84526d5a54dded5a51dc4c..ddc8750b0f828e60b17a6a068f916e71e5fbe444 100644 (file)
@@ -62,7 +62,7 @@ bool FGBeacon::init() {
        ptr += INNER_DIT_LEN;
     }
 
-    inner = new SGSoundSample( inner_buf, INNER_SIZE, BYTES_PER_SECOND, false );
+    inner = new SGSoundSample( inner_buf, INNER_SIZE, BYTES_PER_SECOND );
     inner->set_reference_dist( 10.0 );
     inner->set_max_dist( 20.0 );
 
@@ -82,8 +82,7 @@ bool FGBeacon::init() {
     ptr += MIDDLE_DIT_LEN;
     memcpy( ptr, middle_dah, MIDDLE_DAH_LEN );
 
-    middle = new SGSoundSample( middle_buf, MIDDLE_SIZE, BYTES_PER_SECOND,
-                                false );
+    middle = new SGSoundSample( middle_buf, MIDDLE_SIZE, BYTES_PER_SECOND );
     middle->set_reference_dist( 10.0 );
     middle->set_max_dist( 20.0 );
 
@@ -98,7 +97,7 @@ bool FGBeacon::init() {
     ptr += OUTER_DAH_LEN;
     memcpy( ptr, outer_dah, OUTER_DAH_LEN );
 
-    outer = new SGSoundSample( outer_buf, OUTER_SIZE, BYTES_PER_SECOND, false );
+    outer = new SGSoundSample( outer_buf, OUTER_SIZE, BYTES_PER_SECOND);
     outer->set_reference_dist( 10.0 );
     outer->set_max_dist( 20.0 );
 
index f018334e21ae1acdb4d25f3a6df5bc0b30d57bca..855d7b2651b052c0c23ef7b7915c954f3641d02f 100644 (file)
@@ -261,8 +261,7 @@ 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,
-                                               false );
+                                               BYTES_PER_SECOND );
 
     // clean up the buffer
     delete [] buffer;