From 478e771632328366e575ed5748e9fdc2be3a42be Mon Sep 17 00:00:00 2001 From: Torsten Dreyer Date: Thu, 29 Sep 2011 00:01:44 +0200 Subject: [PATCH] Add a localizer audio ident class This will be needed soon in the new navradio code. --- src/Sound/audioident.cxx | 7 ++++++- src/Sound/audioident.hxx | 5 +++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/src/Sound/audioident.cxx b/src/Sound/audioident.cxx index a09b68d80..782526c9b 100644 --- a/src/Sound/audioident.cxx +++ b/src/Sound/audioident.cxx @@ -135,7 +135,12 @@ VORAudioIdent::VORAudioIdent( const std::string & fx_name ) //FIXME: LOCAudioIdent at approx 7wpm (ICAO Annex 10 - 3.1.3.9.4) // not less than six times per minute at approx equal intervals // frequency 1020+/-50Hz (3.1.3.9.2) +LOCAudioIdent::LOCAudioIdent( const std::string & fx_name ) +: AudioIdent( fx_name, 10, FGMorse::LO_FREQUENCY ) +{ +} + // FIXME: NDBAudioIdent at approx 7 wpm (ICAO ANNEX 10 - 3.4.5.1) // at least once every 10s (3.4.5.2.1) -// frequency 1020+/-50Hz or 400+/-25Hz (3.4.5.4) \ No newline at end of file +// frequency 1020+/-50Hz or 400+/-25Hz (3.4.5.4) diff --git a/src/Sound/audioident.hxx b/src/Sound/audioident.hxx index 723ddd70d..3fcc7cd52 100644 --- a/src/Sound/audioident.hxx +++ b/src/Sound/audioident.hxx @@ -62,4 +62,9 @@ public: VORAudioIdent( const std::string & fx_name ); }; +class LOCAudioIdent : public AudioIdent { +public: + LOCAudioIdent( const std::string & fx_name ); +}; + #endif // _FGAUDIOIDENT_HXX -- 2.39.5