libvpb  4.2.55
HostToneGen Class Reference

Host based tone generator implementation. More...

#include <tonegen.h>

Inheritance diagram for HostToneGen:
Collaboration diagram for HostToneGen:

List of all members.

Classes

class  Oscillator
 Digital oscillator for a single tone component.

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.

Detailed Description

Host based tone generator implementation.


Member Function Documentation

bool HostToneGen::MixTone ( int16_t *  buf,
size_t  samples 
)

Add the next samples of this tone to the signal in buf.

Parameters:
bufA buffer of 16bit linear audio data to add this tone to.
samplesThe number of tone samples to place in buf.
Returns:
true if the tone generator is not IDLE, else false.
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Defines