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

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

Public Member Functions

 cfg_t (unsigned skip_, unsigned num_channels_, unsigned num_samples_, const std::string &source_id, const std::string varname_, double rate)
 C'tor of wave2lsl run time configuration. More...
 
void process (mha_wave_t *s)
 

Private Attributes

unsigned skipcnt
 Counter of frames to skip. More...
 
const unsigned skip
 Number of frames to skip after each send. More...
 
lsl::stream_info info
 LSL stream info. More...
 
lsl::stream_outlet stream
 LSL stream outlet. More...
 

Detailed Description

Runtime configuration class of the wave2lsl plugin.

Constructor & Destructor Documentation

◆ cfg_t()

cfg_t::cfg_t ( unsigned  skip_,
unsigned  num_channels_,
unsigned  num_samples_,
const std::string &  source_id,
const std::string  varname_,
double  rate 
)

C'tor of wave2lsl run time configuration.

Parameters
skip_Number of frames to skip after each send
num_channels_Number of channels in the LSL stream
num_samples_Number of samples within one frame
source_id_LSL identifier for this data stream
varname_Names of AC variables to send over LSL
rateRate with wich chunks of data are sent to the LSL stream. Usually the rate with which process calls happen, but may be lower due to the subsampling caused by skip_

Member Function Documentation

◆ process()

void cfg_t::process ( mha_wave_t s)

Member Data Documentation

◆ skipcnt

unsigned wave2lsl::cfg_t::skipcnt
private

Counter of frames to skip.

◆ skip

const unsigned wave2lsl::cfg_t::skip
private

Number of frames to skip after each send.

◆ info

lsl::stream_info wave2lsl::cfg_t::info
private

LSL stream info.

◆ stream

lsl::stream_outlet wave2lsl::cfg_t::stream
private

LSL stream outlet.

Interface to lsl


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