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

Runtime configuration class of the lsl2ac plugin. More...

Public Member Functions

 cfg_t (MHA_AC::algo_comm_t &ac_, overrun_behavior overrun_, int bufsize_, int chunksize_, const std::vector< std::string > &streamnames_, int nchannels_, int nsamples_)
 C'tor of lsl2ac run time configuration. More...
 
void process ()
 

Private Attributes

std::map< std::string, std::unique_ptr< save_var_base_t > > varlist
 Maps variable name to unique ptr's of lsl to ac bridges. More...
 

Detailed Description

Runtime configuration class of the lsl2ac plugin.

Constructor & Destructor Documentation

◆ cfg_t()

cfg_t::cfg_t ( MHA_AC::algo_comm_t ac_,
overrun_behavior  overrun_,
int  bufsize_,
int  chunksize_,
const std::vector< std::string > &  streamnames_,
int  nchannels_,
int  nsamples_ 
)

C'tor of lsl2ac run time configuration.

Parameters
ac_AC space, data from LSL will be inserted as AC variables
overrun_Overrun behavior
bufsize_Buffer size of the LSL stream inlet
chunksize_Chunk size of the LSL stream
streamnames_Names of LSL streams to be subscribed to
nchannels_Number of channels to expect in the the LSL streams. Zero means accept any.
nsamples_Number of samples per channel in the AC variable. Zero means resize as needed.

Member Function Documentation

◆ process()

void cfg_t::process ( void  )

Member Data Documentation

◆ varlist

std::map<std::string, std::unique_ptr<save_var_base_t> > lsl2ac::cfg_t::varlist
private

Maps variable name to unique ptr's of lsl to ac bridges.


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