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

#include <dtmf.h>

Collaboration diagram for jami::DTMF:
Collaboration graph

Public Member Functions

 DTMF (unsigned int sampleRate, AVSampleFormat sampleFormat)
 Create a new DTMF.
 
bool generateDTMF (AVFrame *frame)
 Copy the sound inside the sampling* buffer.
 
void startTone (char code)
 Start the done for th given dtmf.
 

Detailed Description

Definition at line 27 of file dtmf.h.

Constructor & Destructor Documentation

◆ DTMF()

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

Create a new DTMF.

Parameters
sampleRatefrequency of the sample (ex: 8000 hz)

Definition at line 22 of file dtmf.cpp.

Member Function Documentation

◆ generateDTMF()

bool jami::DTMF::generateDTMF ( AVFrame frame)

Copy the sound inside the sampling* buffer.

Definition at line 35 of file dtmf.cpp.

References jami::emitSignal(), jami::DTMFGenerator::getNextSamples(), and jami::DTMFGenerator::getSamples().

Here is the call graph for this function:

◆ startTone()

void jami::DTMF::startTone ( char  code)

Start the done for th given dtmf.

Parameters
codeThe DTMF code

Definition at line 29 of file dtmf.cpp.


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