]> git.mxchange.org Git - flightgear.git/blobdiff - src/Sound/morse.cxx
Add a *really* crude model of ITT, Oil Temp, and Oil Pressure. This
[flightgear.git] / src / Sound / morse.cxx
index ef0b43fa7da6ec1fccbdb0f5314c25e16ba2db0d..ea86999d84238988b280f08707eb3a6638439c8b 100644 (file)
@@ -2,7 +2,7 @@
 //
 // Written by Curtis Olson, started March 2001.
 //
-// Copyright (C) 2001  Curtis L. Olson - curt@flightgear.org
+// Copyright (C) 2001  Curtis L. Olson - http://www.flightgear.org/~curt
 //
 // This program is free software; you can redistribute it and/or
 // modify it under the terms of the GNU General Public License as
@@ -261,7 +261,14 @@ 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 );
+                                               BYTES_PER_SECOND,
+                                               false );
+
+    // clean up the buffer
+    delete [] buffer;
+
+    sample->set_reference_dist( 10.0 );
+    sample->set_max_dist( 20.0 );
 
     return sample;
 }