From: Torsten Dreyer Date: Wed, 28 Sep 2011 22:01:44 +0000 (+0200) Subject: Add a localizer audio ident class X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=478e771632328366e575ed5748e9fdc2be3a42be;p=flightgear.git Add a localizer audio ident class This will be needed soon in the new navradio code. --- 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