FlightGear next
FGMorse Class Reference

#include <morse.hxx>

Inherits FGSoundGenerator.

Public Member Functions

 FGMorse ()
 
 ~FGMorse ()
 
SGSoundSample * make_ident (const std::string &id, const int freq=LO_FREQUENCY)
 
- Public Member Functions inherited from FGSoundGenerator
virtual ~FGSoundGenerator ()
 

Static Public Member Functions

static FGMorseinstance ()
 

Static Public Attributes

static const int BYTES_PER_SECOND = 22050
 
static const int BEAT_LENGTH = 92
 
static const int TRANSITION_BYTES = BYTES_PER_SECOND/200
 
static const int COUNT_SIZE = BYTES_PER_SECOND * BEAT_LENGTH / 1000
 
static const int DIT_SIZE = 2 * COUNT_SIZE
 
static const int DAH_SIZE = 4 * COUNT_SIZE
 
static const int SPACE_SIZE = 3 * COUNT_SIZE
 
static const int LO_FREQUENCY = 1020
 
static const int HI_FREQUENCY = 1350
 
- Static Public Attributes inherited from FGSoundGenerator
static const int BYTES_PER_SECOND = 22050
 
static const int BEAT_LENGTH = 92
 
static const int TRANSITION_BYTES = BYTES_PER_SECOND/200
 
static const int COUNT_SIZE = BYTES_PER_SECOND * BEAT_LENGTH / 1000
 
static const int DIT_SIZE = 2 * COUNT_SIZE
 
static const int DAH_SIZE = 4 * COUNT_SIZE
 
static const int SPACE_SIZE = 3 * COUNT_SIZE
 
static const int LO_FREQUENCY = 1020
 
static const int HI_FREQUENCY = 1350
 

Additional Inherited Members

Detailed Description

Definition at line 79 of file morse.hxx.

Constructor & Destructor Documentation

◆ FGMorse()

FGMorse::FGMorse ( )

Definition at line 83 of file morse.cxx.

◆ ~FGMorse()

FGMorse::~FGMorse ( )

Definition at line 87 of file morse.cxx.

Member Function Documentation

◆ instance()

FGMorse * FGMorse::instance ( )
static

Definition at line 250 of file morse.cxx.

◆ make_ident()

SGSoundSample * FGMorse::make_ident ( const std::string & id,
const int freq = LO_FREQUENCY )

Definition at line 141 of file morse.cxx.

Member Data Documentation

◆ BEAT_LENGTH

const int FGMorse::BEAT_LENGTH = 92
static

Definition at line 101 of file morse.hxx.

◆ BYTES_PER_SECOND

const int FGMorse::BYTES_PER_SECOND = 22050
static

Definition at line 99 of file morse.hxx.

◆ COUNT_SIZE

const int FGMorse::COUNT_SIZE = BYTES_PER_SECOND * BEAT_LENGTH / 1000
static

Definition at line 103 of file morse.hxx.

◆ DAH_SIZE

const int FGMorse::DAH_SIZE = 4 * COUNT_SIZE
static

Definition at line 105 of file morse.hxx.

◆ DIT_SIZE

const int FGMorse::DIT_SIZE = 2 * COUNT_SIZE
static

Definition at line 104 of file morse.hxx.

◆ HI_FREQUENCY

const int FGMorse::HI_FREQUENCY = 1350
static

Definition at line 108 of file morse.hxx.

◆ LO_FREQUENCY

const int FGMorse::LO_FREQUENCY = 1020
static

Definition at line 107 of file morse.hxx.

◆ SPACE_SIZE

const int FGMorse::SPACE_SIZE = 3 * COUNT_SIZE
static

Definition at line 106 of file morse.hxx.

◆ TRANSITION_BYTES

const int FGMorse::TRANSITION_BYTES = BYTES_PER_SECOND/200
static

Definition at line 102 of file morse.hxx.


The documentation for this class was generated from the following files: