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

#include <tonecontrol.h>

Collaboration diagram for jami::ToneControl:
Collaboration graph

Public Member Functions

std::shared_ptr< AudioLoopgetTelephoneFile (void)
 
std::shared_ptr< AudioLoopgetTelephoneTone ()
 
void play (Tone::ToneId toneId)
 
void seek (double value)
 
bool setAudioFile (const std::string &file)
 
void setSampleRate (unsigned rate, AVSampleFormat sampleFormat)
 
void stop ()
 
void stopAudioFile ()
 
 ToneControl ()=delete
 
 ToneControl (const Preferences &preferences)
 
 ~ToneControl ()
 

Detailed Description

Definition at line 36 of file tonecontrol.h.

Constructor & Destructor Documentation

◆ ToneControl() [1/2]

jami::ToneControl::ToneControl ( )
delete

◆ ToneControl() [2/2]

jami::ToneControl::ToneControl ( const Preferences preferences)

Definition at line 31 of file tonecontrol.cpp.

◆ ~ToneControl()

jami::ToneControl::~ToneControl ( )

Definition at line 36 of file tonecontrol.cpp.

Member Function Documentation

◆ getTelephoneFile()

std::shared_ptr< AudioLoop > jami::ToneControl::getTelephoneFile ( void  )

Definition at line 69 of file tonecontrol.cpp.

References jami::emitSignal().

Here is the call graph for this function:

◆ getTelephoneTone()

std::shared_ptr< AudioLoop > jami::ToneControl::getTelephoneTone ( )

Definition at line 60 of file tonecontrol.cpp.

References jami::emitSignal().

Here is the call graph for this function:

◆ play()

void jami::ToneControl::play ( Tone::ToneId  toneId)

Definition at line 120 of file tonecontrol.cpp.

References jami::emitSignal().

Here is the call graph for this function:

◆ seek()

void jami::ToneControl::seek ( double  value)

Definition at line 129 of file tonecontrol.cpp.

References jami::emitSignal().

Here is the call graph for this function:

◆ setAudioFile()

bool jami::ToneControl::setAudioFile ( const std::string &  file)

Definition at line 76 of file tonecontrol.cpp.

References jami::emitSignal(), and JAMI_WARN.

Here is the call graph for this function:

◆ setSampleRate()

void jami::ToneControl::setSampleRate ( unsigned  rate,
AVSampleFormat  sampleFormat 
)

Definition at line 39 of file tonecontrol.cpp.

References jami::emitSignal(), jami::Preferences::getZoneToneChoice(), and JAMI_WARN.

Here is the call graph for this function:

◆ stop()

void jami::ToneControl::stop ( )

Definition at line 106 of file tonecontrol.cpp.

References jami::emitSignal(), and jami::Tone::TONE_NULL.

Here is the call graph for this function:

◆ stopAudioFile()

void jami::ToneControl::stopAudioFile ( )

Definition at line 95 of file tonecontrol.cpp.

References jami::emitSignal().

Here is the call graph for this function:

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