The Open Master Hearing Aid (openMHA)  openMHA
Open community platform for hearing aid algorithm research
osc_server_t Class Reference

OSC receiver implemented using liblo. More...

Public Member Functions

 osc_server_t (const std::string &multicast_addr, const std::string &port)
 
 ~osc_server_t ()
 
void server_stop ()
 
void server_start ()
 
void insert_variable (const std::string &name, unsigned int size, MHA_AC::algo_comm_t &hAC)
 
void sync_osc2ac ()
 
void ac_insert ()
 

Static Public Member Functions

static void error_h (int num, const char *msg, const char *path)
 

Private Attributes

std::vector< std::unique_ptr< osc_variable_t > > pVars
 
lo_server_thread lost
 
bool is_running
 

Detailed Description

OSC receiver implemented using liblo.

Constructor & Destructor Documentation

◆ osc_server_t()

osc_server_t::osc_server_t ( const std::string &  multicast_addr,
const std::string &  port 
)

◆ ~osc_server_t()

osc_server_t::~osc_server_t ( )

Member Function Documentation

◆ server_stop()

void osc_server_t::server_stop ( )

◆ server_start()

void osc_server_t::server_start ( )

◆ insert_variable()

void osc_server_t::insert_variable ( const std::string &  name,
unsigned int  size,
MHA_AC::algo_comm_t hAC 
)

◆ sync_osc2ac()

void osc_server_t::sync_osc2ac ( )

◆ ac_insert()

void osc_server_t::ac_insert ( )

◆ error_h()

void osc_server_t::error_h ( int  num,
const char *  msg,
const char *  path 
)
static

Member Data Documentation

◆ pVars

std::vector<std::unique_ptr<osc_variable_t> > osc_server_t::pVars
private

◆ lost

lo_server_thread osc_server_t::lost
private

◆ is_running

bool osc_server_t::is_running
private

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