#include <Navaids/navlist.hxx>
#include "adf.hxx"
+#include <Sound/morse.hxx>
+
#include <iostream>
#include <string>
_sgr = smgr->find("avionics", true);
_sgr->tie_to_listener();
- morse.init();
-
std::ostringstream temp;
temp << _name << _num;
_adf_ident = temp.str();
}
SGSoundSample *sound;
- sound = morse.make_ident( ident, LO_FREQUENCY );
+ sound = FGMorse::instance()->make_ident( ident, LO_FREQUENCY );
sound->set_volume(_last_volume = 0);
_sgr->add( sound, _adf_ident );