#include <soundgenerator.hxx>
Inherited by FGBeacon, and FGMorse.
|
(Note that these are not member symbols.)
|
static void | make_tone (unsigned char *buf, int freq, int len, int total_len, int trans_len) |
| Make a tone of specified freq and total_len with trans_len ramp in and out and only the first len bytes with sound, the rest with silence.
|
|
Definition at line 30 of file soundgenerator.hxx.
◆ ~FGSoundGenerator()
FGSoundGenerator::~FGSoundGenerator |
( |
| ) |
|
|
virtual |
◆ make_tone()
void FGSoundGenerator::make_tone |
( |
unsigned char * | buf, |
|
|
int | freq, |
|
|
int | len, |
|
|
int | total_len, |
|
|
int | trans_len ) |
|
related |
Make a tone of specified freq and total_len with trans_len ramp in and out and only the first len bytes with sound, the rest with silence.
- Parameters
-
buf | unsigned char pointer to sound buffer |
freq | desired frequency of tone |
len | length of tone within sound |
total_len | total length of sound (anything more than len is padded with silence. |
trans_len | length of ramp up and ramp down to avoid audio "pop" |
Definition at line 32 of file soundgenerator.cxx.
◆ BEAT_LENGTH
const int FGSoundGenerator::BEAT_LENGTH = 92 |
|
static |
◆ BYTES_PER_SECOND
const int FGSoundGenerator::BYTES_PER_SECOND = 22050 |
|
static |
◆ COUNT_SIZE
◆ DAH_SIZE
const int FGSoundGenerator::DAH_SIZE = 4 * COUNT_SIZE |
|
static |
◆ DIT_SIZE
const int FGSoundGenerator::DIT_SIZE = 2 * COUNT_SIZE |
|
static |
◆ HI_FREQUENCY
const int FGSoundGenerator::HI_FREQUENCY = 1350 |
|
static |
◆ LO_FREQUENCY
const int FGSoundGenerator::LO_FREQUENCY = 1020 |
|
static |
◆ SPACE_SIZE
const int FGSoundGenerator::SPACE_SIZE = 3 * COUNT_SIZE |
|
static |
◆ TRANSITION_BYTES
The documentation for this class was generated from the following files: