]> git.mxchange.org Git - flightgear.git/blobdiff - src/Sound/morse.cxx
Revive master sound enable switch.
[flightgear.git] / src / Sound / morse.cxx
index 9ff603322b8452ddb4451f3fb25e900265ffe47b..1563841ab7fee87567a2a4a6e4464e4a7145a367 100644 (file)
 
 #include "morse.hxx"
 
+#include <simgear/sound/sample_openal.hxx>
+
 #include <cstring>
+#include <stdlib.h>
+
+static const char DI = '1';
+static const char DIT = '1';
+static const char DA = '2';
+static const char DAH = '2';
+static const char END = '0';
 
 static const char alphabet[26][4] = {
     { DI, DAH, END, END },     /* A */ 
@@ -128,7 +137,7 @@ bool FGMorse::cust_init(const int freq ) {
 
 
 // make a SGSoundSample morse code transmission for the specified string
-SGSoundSample *FGMorse::make_ident( const string& id, const int freq ) {
+SGSoundSample *FGMorse::make_ident( const std::string& id, const int freq ) {
 
     char *idptr = (char *)id.c_str();