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

Base class for source selection. More...

Inheritance diagram for MHAMultiSrc::base_t:
Inheritance graph

Public Member Functions

 base_t (MHA_AC::algo_comm_t &iac)
 
void select_source (const std::vector< std::string > &src, int in_channels)
 Change the selection of input sources. More...
 

Protected Attributes

MHA_AC::algo_comm_tac
 
- Protected Attributes inherited from MHAPlugin::config_t< MHAMultiSrc::channels_t >
MHAMultiSrc::channels_tcfg
 Pointer to the runtime configuration currently used by the signal processing thread. More...
 

Additional Inherited Members

- Protected Member Functions inherited from MHAPlugin::config_t< MHAMultiSrc::channels_t >
MHAMultiSrc::channels_tpoll_config ()
 Receive the latest run time configuration. More...
 
MHAMultiSrc::channels_tpeek_config () const
 Receive the latest run time configuration without changing the configuration pointer. More...
 
void push_config (MHAMultiSrc::channels_t *ncfg)
 Push a new run time configuration into the configuration fifo. More...
 
void cleanup_unused_cfg ()
 To be called by the push_config() for housekeeping. More...
 
void remove_all_cfg ()
 To be called on Plugin destruction, will delete all runtime configuration list nodes and objects regardless of their in_use flag. More...
 
 config_t ()
 
 ~config_t ()
 

Detailed Description

Base class for source selection.

See also
MHAMultiSrc::channel_t
MHAMultiSrc::channels_t

Constructor & Destructor Documentation

◆ base_t()

MHAMultiSrc::base_t::base_t ( MHA_AC::algo_comm_t iac)

Member Function Documentation

◆ select_source()

void MHAMultiSrc::base_t::select_source ( const std::vector< std::string > &  src,
int  in_channels 
)

Change the selection of input sources.

This function is real-time and thread safe.

Parameters
srcList of input sources
in_channelsNumber of input channels in direct input (the processed signal)

Member Data Documentation

◆ ac

MHA_AC::algo_comm_t& MHAMultiSrc::base_t::ac
protected

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