Ring Daemon 16.0.0
Loading...
Searching...
No Matches
jami::DTMFGenerator Class Reference

#include <dtmfgenerator.h>

Collaboration diagram for jami::DTMFGenerator:
Collaboration graph

Public Member Functions

 DTMFGenerator (unsigned int sampleRate, AVSampleFormat sampleFormat)
 DTMF Generator contains frequency of each keys and can build one DTMF.
 
void getNextSamples (AVFrame *frame)
 
void getSamples (AVFrame *frame, unsigned char code)
 
 NON_COPYABLE (DTMFGenerator)
 
 ~DTMFGenerator ()
 

Detailed Description

Definition at line 45 of file dtmfgenerator.h.

Constructor & Destructor Documentation

◆ DTMFGenerator()

jami::DTMFGenerator::DTMFGenerator ( unsigned int  sampleRate,
AVSampleFormat  sampleFormat 
)

DTMF Generator contains frequency of each keys and can build one DTMF.

Parameters
sampleRatefrequency of the sample (ex: 8000 hz)

Definition at line 49 of file dtmfgenerator.cpp.

References jami::emitSignal(), and NUM_TONES.

Here is the call graph for this function:

◆ ~DTMFGenerator()

jami::DTMFGenerator::~DTMFGenerator ( )

Definition at line 61 of file dtmfgenerator.cpp.

Member Function Documentation

◆ getNextSamples()

void jami::DTMFGenerator::getNextSamples ( AVFrame frame)

Definition at line 97 of file dtmfgenerator.cpp.

References jami::emitSignal().

Referenced by jami::DTMF::generateDTMF().

Here is the call graph for this function:

◆ getSamples()

void jami::DTMFGenerator::getSamples ( AVFrame frame,
unsigned char  code 
)

Definition at line 66 of file dtmfgenerator.cpp.

References jami::emitSignal(), and NUM_TONES.

Referenced by jami::DTMF::generateDTMF().

Here is the call graph for this function:

◆ NON_COPYABLE()

jami::DTMFGenerator::NON_COPYABLE ( DTMFGenerator  )

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