#include <SoundHandler.hpp>
◆ SoundHandler()
Babel::SoundHandler::SoundHandler |
( |
std::uint16_t |
port | ) |
|
|
explicit |
sound handler constructor
◆ ~SoundHandler()
Babel::SoundHandler::~SoundHandler |
( |
| ) |
|
◆ addClient()
void Babel::SoundHandler::addClient |
( |
const std::string & |
userid, |
|
|
const std::string & |
ipAddres, |
|
|
std::uint16_t |
port |
|
) |
| |
add a client to the current call
◆ getLocalPort()
uint16_t Babel::SoundHandler::getLocalPort |
( |
| ) |
const |
get the port that the soundHandler is listening
◆ removeClient()
void Babel::SoundHandler::removeClient |
( |
const std::string & |
userid | ) |
|
remove a client to the current call
◆ startCall()
void Babel::SoundHandler::startCall |
( |
| ) |
|
notify the sound handler to start to send data and to receive it
◆ stopCall()
void Babel::SoundHandler::stopCall |
( |
| ) |
|
notify the sound handler to stop
◆ _audio
pointer to audio input and outputs
◆ _blocker
std::condition_variable Babel::SoundHandler::_blocker |
|
private |
@condition variable for stopping or enabling thread
◆ _codec
◆ _condVarMutex
std::mutex Babel::SoundHandler::_condVarMutex |
|
private |
mutex used for the condition variable
◆ _execthread
std::thread Babel::SoundHandler::_execthread |
|
private |
thread for broadcasting data from audio library to udp
◆ _exit_mtx
std::mutex Babel::SoundHandler::_exit_mtx |
|
private |
mutex for should exit variable
◆ _play_mtx
std::mutex Babel::SoundHandler::_play_mtx |
|
private |
mutex for should exit variable
◆ _shouldExit
bool Babel::SoundHandler::_shouldExit |
|
private |
boolean to tell when the thread should exit;
◆ _shouldPlay
bool Babel::SoundHandler::_shouldPlay |
|
private |
boolean to tell when the thread should record;
◆ _socket
pointer to the udp socket for input and output on network
◆ _userlist
std::map<std::string, std::pair<std::string, std::uint16_t> > Babel::SoundHandler::_userlist |
|
private |
list of all users used in current call
◆ _userlist_mtx
std::mutex Babel::SoundHandler::_userlist_mtx |
|
private |
mutex to access the userlist
The documentation for this class was generated from the following files: