#include <tonegen.h>
Public Member Functions | |
HostToneGen () | |
Default constructor. | |
bool | MixTone (int16_t *buf, size_t samples) |
Add the next samples of this tone to the signal in buf. | |
Protected Member Functions | |
State | ImplStart () |
Called by Start() for implementation specific operations. | |
Classes | |
class | Oscillator |
Digital oscillator for a single tone component. |
bool HostToneGen::MixTone | ( | int16_t * | buf, | |
size_t | samples | |||
) |
Add the next samples of this tone to the signal in buf.
buf | A buffer of 16bit linear audio data to add this tone to. | |
samples | The number of tone samples to place in buf. |
true
if the tone generator is not IDLE
, else false
.