]> git.mxchange.org Git - flightgear.git/blobdiff - src/Sound/morse.hxx
Interim windows build fix
[flightgear.git] / src / Sound / morse.hxx
index c79b4782ef2a800075e638e9478c545923dbadb4..1f54fa81ddde0ed85ac15fd517efd50e75646649 100644 (file)
@@ -99,7 +99,7 @@ public:
     static const int BYTES_PER_SECOND = 22050;
     // static const int BEAT_LENGTH = 240; // milleseconds (5 wpm)
     static const int BEAT_LENGTH = 92;  // milleseconds (13 wpm)
-    static const int TRANSITION_BYTES = (int)(0.005 * BYTES_PER_SECOND);
+    static const int TRANSITION_BYTES = BYTES_PER_SECOND/200; // aka (int)(0.005 * BYTES_PER_SECOND);
     static const int COUNT_SIZE = BYTES_PER_SECOND * BEAT_LENGTH / 1000;
     static const int DIT_SIZE = 2 * COUNT_SIZE;   // 2 counts
     static const int DAH_SIZE = 4 * COUNT_SIZE;   // 4 counts
@@ -114,7 +114,7 @@ public:
     static FGMorse * instance();
 
     // make a SimpleSound morse code transmission for the specified string
-    SGSoundSample *make_ident( const string& id,
+    SGSoundSample *make_ident( const std::string& id,
                                const int freq = LO_FREQUENCY );
 };