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

#include <preferences.h>

Inheritance diagram for jami::AudioPreference:
Inheritance graph
Collaboration diagram for jami::AudioPreference:
Collaboration graph

Public Member Functions

 AudioPreference ()
 
AudioLayercreateAudioLayer ()
 
int getAlsaCardin () const
 
int getAlsaCardout () const
 
int getAlsaCardRingtone () const
 
const std::string & getAlsaPlugin () const
 
int getAlsaSmplrate () const
 
const std::string & getAudioApi () const
 
const std::string & getAudioProcessor () const
 
bool getCaptureMuted () const
 
const std::string & getEchoCanceller () const
 
bool getIsAlwaysRecording () const
 
const std::string & getNoiseReduce () const
 
bool getPlaybackMuted () const
 
const std::string & getPortAudioDevicePlayback () const
 
const std::string & getPortAudioDeviceRecord () const
 
const std::string & getPortAudioDeviceRingtone () const
 
const std::string & getPulseDevicePlayback () const
 
const std::string & getPulseDeviceRecord () const
 
const std::string & getPulseDeviceRingtone () const
 
const std::string & getRecordPath () const
 
bool getVadEnabled () const
 
double getVolumemic () const
 
double getVolumespkr () const
 
bool isAGCEnabled () const
 
void serialize (YAML::Emitter &out) const override
 
void setAGCState (bool enabled)
 
void setAlsaCardin (int c)
 
void setAlsaCardout (int c)
 
void setAlsaCardRingtone (int c)
 
void setAlsaPlugin (const std::string &p)
 
void setAlsaSmplrate (int r)
 
void setAudioApi (const std::string &api)
 
void setAudioProcessor (const std::string &ap)
 
void setCaptureMuted (bool muted)
 
void setEchoCancel (std::string &canceller)
 
void setIsAlwaysRecording (bool rec)
 
void setNoiseReduce (const std::string &enabled)
 
void setPlaybackMuted (bool muted)
 
void setPortAudioDevicePlayback (const std::string &p)
 
void setPortAudioDeviceRecord (const std::string &r)
 
void setPortAudioDeviceRingtone (const std::string &r)
 
void setPulseDevicePlayback (const std::string &p)
 
void setPulseDeviceRecord (const std::string &r)
 
void setPulseDeviceRingtone (const std::string &r)
 
bool setRecordPath (const std::string &r)
 
void setVad (bool enable)
 
void setVolumemic (double m)
 
void setVolumespkr (double s)
 
void unserialize (const YAML::Node &in) override
 
- Public Member Functions inherited from jami::Serializable
virtual ~Serializable ()
 

Static Public Member Functions

static std::vector< std::string > getSupportedAudioManagers ()
 

Detailed Description

Definition at line 128 of file preferences.h.

Constructor & Destructor Documentation

◆ AudioPreference()

jami::AudioPreference::AudioPreference ( )

Definition at line 259 of file preferences.cpp.

Member Function Documentation

◆ createAudioLayer()

AudioLayer * jami::AudioPreference::createAudioLayer ( )

◆ getAlsaCardin()

int jami::AudioPreference::getAlsaCardin ( ) const
inline

Definition at line 145 of file preferences.h.

◆ getAlsaCardout()

int jami::AudioPreference::getAlsaCardout ( ) const
inline

Definition at line 149 of file preferences.h.

◆ getAlsaCardRingtone()

int jami::AudioPreference::getAlsaCardRingtone ( ) const
inline

Definition at line 153 of file preferences.h.

◆ getAlsaPlugin()

const std::string & jami::AudioPreference::getAlsaPlugin ( ) const
inline

Definition at line 157 of file preferences.h.

Referenced by jami::Manager::getCurrentAudioOutputPlugin().

◆ getAlsaSmplrate()

int jami::AudioPreference::getAlsaSmplrate ( ) const
inline

Definition at line 161 of file preferences.h.

◆ getAudioApi()

const std::string & jami::AudioPreference::getAudioApi ( ) const
inline

◆ getAudioProcessor()

const std::string & jami::AudioPreference::getAudioProcessor ( ) const
inline

Definition at line 222 of file preferences.h.

◆ getCaptureMuted()

bool jami::AudioPreference::getCaptureMuted ( ) const
inline

Definition at line 214 of file preferences.h.

◆ getEchoCanceller()

const std::string & jami::AudioPreference::getEchoCanceller ( ) const
inline

◆ getIsAlwaysRecording()

bool jami::AudioPreference::getIsAlwaysRecording ( ) const
inline

Definition at line 196 of file preferences.h.

Referenced by jami::Manager::getIsAlwaysRecording().

◆ getNoiseReduce()

const std::string & jami::AudioPreference::getNoiseReduce ( ) const
inline

◆ getPlaybackMuted()

bool jami::AudioPreference::getPlaybackMuted ( ) const
inline

Definition at line 218 of file preferences.h.

◆ getPortAudioDevicePlayback()

const std::string & jami::AudioPreference::getPortAudioDevicePlayback ( ) const
inline

Definition at line 178 of file preferences.h.

◆ getPortAudioDeviceRecord()

const std::string & jami::AudioPreference::getPortAudioDeviceRecord ( ) const
inline

Definition at line 182 of file preferences.h.

◆ getPortAudioDeviceRingtone()

const std::string & jami::AudioPreference::getPortAudioDeviceRingtone ( ) const
inline

Definition at line 186 of file preferences.h.

◆ getPulseDevicePlayback()

const std::string & jami::AudioPreference::getPulseDevicePlayback ( ) const
inline

Definition at line 166 of file preferences.h.

◆ getPulseDeviceRecord()

const std::string & jami::AudioPreference::getPulseDeviceRecord ( ) const
inline

Definition at line 170 of file preferences.h.

◆ getPulseDeviceRingtone()

const std::string & jami::AudioPreference::getPulseDeviceRingtone ( ) const
inline

Definition at line 173 of file preferences.h.

◆ getRecordPath()

const std::string & jami::AudioPreference::getRecordPath ( ) const
inline

Definition at line 191 of file preferences.h.

Referenced by libjami::getRecordPath(), and jami::Recordable::toggleRecording().

◆ getSupportedAudioManagers()

std::vector< std::string > jami::AudioPreference::getSupportedAudioManagers ( )
static

◆ getVadEnabled()

bool jami::AudioPreference::getVadEnabled ( ) const
inline

Definition at line 226 of file preferences.h.

◆ getVolumemic()

double jami::AudioPreference::getVolumemic ( ) const
inline

Definition at line 200 of file preferences.h.

◆ getVolumespkr()

double jami::AudioPreference::getVolumespkr ( ) const
inline

Definition at line 203 of file preferences.h.

◆ isAGCEnabled()

bool jami::AudioPreference::isAGCEnabled ( ) const
inline

Definition at line 206 of file preferences.h.

Referenced by jami::AudioLayer::AudioLayer(), and jami::Manager::isAGCEnabled().

◆ serialize()

◆ setAGCState()

void jami::AudioPreference::setAGCState ( bool  enabled)
inline

Definition at line 208 of file preferences.h.

Referenced by jami::Manager::setAGCState().

◆ setAlsaCardin()

void jami::AudioPreference::setAlsaCardin ( int  c)
inline

Definition at line 147 of file preferences.h.

◆ setAlsaCardout()

void jami::AudioPreference::setAlsaCardout ( int  c)
inline

Definition at line 151 of file preferences.h.

◆ setAlsaCardRingtone()

void jami::AudioPreference::setAlsaCardRingtone ( int  c)
inline

Definition at line 155 of file preferences.h.

◆ setAlsaPlugin()

void jami::AudioPreference::setAlsaPlugin ( const std::string &  p)
inline

Definition at line 159 of file preferences.h.

◆ setAlsaSmplrate()

void jami::AudioPreference::setAlsaSmplrate ( int  r)
inline

Definition at line 163 of file preferences.h.

◆ setAudioApi()

void jami::AudioPreference::setAudioApi ( const std::string &  api)
inline

Definition at line 138 of file preferences.h.

Referenced by jami::Manager::setAudioManager().

◆ setAudioProcessor()

void jami::AudioPreference::setAudioProcessor ( const std::string &  ap)
inline

Definition at line 224 of file preferences.h.

References jami::emitSignal().

Here is the call graph for this function:

◆ setCaptureMuted()

void jami::AudioPreference::setCaptureMuted ( bool  muted)
inline

Definition at line 216 of file preferences.h.

References jami::emitSignal().

Here is the call graph for this function:

◆ setEchoCancel()

void jami::AudioPreference::setEchoCancel ( std::string &  canceller)
inline

Definition at line 232 of file preferences.h.

References jami::emitSignal().

Here is the call graph for this function:

◆ setIsAlwaysRecording()

void jami::AudioPreference::setIsAlwaysRecording ( bool  rec)
inline

Definition at line 198 of file preferences.h.

References jami::emitSignal().

Referenced by jami::Manager::setIsAlwaysRecording().

Here is the call graph for this function:

◆ setNoiseReduce()

void jami::AudioPreference::setNoiseReduce ( const std::string &  enabled)
inline

Definition at line 212 of file preferences.h.

Referenced by jami::Manager::setNoiseSuppressState().

◆ setPlaybackMuted()

void jami::AudioPreference::setPlaybackMuted ( bool  muted)
inline

Definition at line 220 of file preferences.h.

References jami::emitSignal().

Here is the call graph for this function:

◆ setPortAudioDevicePlayback()

void jami::AudioPreference::setPortAudioDevicePlayback ( const std::string &  p)
inline

Definition at line 180 of file preferences.h.

◆ setPortAudioDeviceRecord()

void jami::AudioPreference::setPortAudioDeviceRecord ( const std::string &  r)
inline

Definition at line 184 of file preferences.h.

◆ setPortAudioDeviceRingtone()

void jami::AudioPreference::setPortAudioDeviceRingtone ( const std::string &  r)
inline

Definition at line 188 of file preferences.h.

◆ setPulseDevicePlayback()

void jami::AudioPreference::setPulseDevicePlayback ( const std::string &  p)
inline

Definition at line 168 of file preferences.h.

◆ setPulseDeviceRecord()

void jami::AudioPreference::setPulseDeviceRecord ( const std::string &  r)
inline

Definition at line 171 of file preferences.h.

◆ setPulseDeviceRingtone()

void jami::AudioPreference::setPulseDeviceRingtone ( const std::string &  r)
inline

Definition at line 175 of file preferences.h.

◆ setRecordPath()

bool jami::AudioPreference::setRecordPath ( const std::string &  r)

Definition at line 447 of file preferences.cpp.

References jami::fileutils::expand_path(), jami::fileutils::isDirectoryWritable(), and JAMI_ERR.

Referenced by libjami::setRecordPath().

Here is the call graph for this function:

◆ setVad()

void jami::AudioPreference::setVad ( bool  enable)
inline

Definition at line 228 of file preferences.h.

◆ setVolumemic()

void jami::AudioPreference::setVolumemic ( double  m)
inline

Definition at line 201 of file preferences.h.

References jami::emitSignal().

Here is the call graph for this function:

◆ setVolumespkr()

void jami::AudioPreference::setVolumespkr ( double  s)
inline

Definition at line 204 of file preferences.h.

◆ unserialize()


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