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

Public Member Functions

 plugs_t (std::vector< std::string > algos, mhaconfig_t cfin, mhaconfig_t cfout, bool do_prepare, MHAParser::parser_t &p, MHA_AC::algo_comm_t &iac, bool use_profiling)
 
 ~plugs_t ()
 
void prepare (mhaconfig_t &)
 
void release ()
 
void process (mha_wave_t *, mha_spec_t *, mha_wave_t **, mha_spec_t **)
 
bool prepared () const
 

Private Member Functions

void alloc_plugs (std::vector< std::string > algos)
 
void cleanup_plugs ()
 
void update_proc_load ()
 

Private Attributes

bool b_prepared
 
std::vector< PluginLoader::mhapluginloader_t * > algos
 
MHAParser::parser_tparser
 
MHA_AC::algo_comm_tac
 
MHAParser::parser_t profiling
 
MHAParser::vstring_mon_t prof_algos
 
MHAParser::vfloat_mon_t prof_init
 
MHAParser::vfloat_mon_t prof_prepare
 
MHAParser::vfloat_mon_t prof_release
 
MHAParser::vfloat_mon_t prof_process
 
MHAParser::float_mon_t prof_process_tt
 
MHAParser::vfloat_mon_t prof_process_load
 
unsigned int proc_cnt
 
mhaconfig_t prof_cfg
 
MHAEvents::connector_t< mhachain::plugs_tprof_load_con
 
MHAEvents::connector_t< mhachain::plugs_tprof_tt_con
 
bool b_use_profiling
 
mha_platform_tictoc_t tictoc
 

Constructor & Destructor Documentation

◆ plugs_t()

mhachain::plugs_t::plugs_t ( std::vector< std::string >  algos,
mhaconfig_t  cfin,
mhaconfig_t  cfout,
bool  do_prepare,
MHAParser::parser_t p,
MHA_AC::algo_comm_t iac,
bool  use_profiling 
)

◆ ~plugs_t()

mhachain::plugs_t::~plugs_t ( )

Member Function Documentation

◆ prepare()

void mhachain::plugs_t::prepare ( mhaconfig_t tf)

◆ release()

void mhachain::plugs_t::release ( void  )

◆ process()

void mhachain::plugs_t::process ( mha_wave_t win,
mha_spec_t sin,
mha_wave_t **  wout,
mha_spec_t **  sout 
)

◆ prepared()

bool mhachain::plugs_t::prepared ( ) const
inline

◆ alloc_plugs()

void mhachain::plugs_t::alloc_plugs ( std::vector< std::string >  algos)
private

◆ cleanup_plugs()

void mhachain::plugs_t::cleanup_plugs ( )
private

◆ update_proc_load()

void mhachain::plugs_t::update_proc_load ( )
private

Member Data Documentation

◆ b_prepared

bool mhachain::plugs_t::b_prepared
private

◆ algos

std::vector< PluginLoader::mhapluginloader_t* > mhachain::plugs_t::algos
private

◆ parser

MHAParser::parser_t& mhachain::plugs_t::parser
private

◆ ac

MHA_AC::algo_comm_t& mhachain::plugs_t::ac
private

◆ profiling

MHAParser::parser_t mhachain::plugs_t::profiling
private

◆ prof_algos

MHAParser::vstring_mon_t mhachain::plugs_t::prof_algos
private

◆ prof_init

MHAParser::vfloat_mon_t mhachain::plugs_t::prof_init
private

◆ prof_prepare

MHAParser::vfloat_mon_t mhachain::plugs_t::prof_prepare
private

◆ prof_release

MHAParser::vfloat_mon_t mhachain::plugs_t::prof_release
private

◆ prof_process

MHAParser::vfloat_mon_t mhachain::plugs_t::prof_process
private

◆ prof_process_tt

MHAParser::float_mon_t mhachain::plugs_t::prof_process_tt
private

◆ prof_process_load

MHAParser::vfloat_mon_t mhachain::plugs_t::prof_process_load
private

◆ proc_cnt

unsigned int mhachain::plugs_t::proc_cnt
private

◆ prof_cfg

mhaconfig_t mhachain::plugs_t::prof_cfg
private

◆ prof_load_con

MHAEvents::connector_t<mhachain::plugs_t> mhachain::plugs_t::prof_load_con
private

◆ prof_tt_con

MHAEvents::connector_t<mhachain::plugs_t> mhachain::plugs_t::prof_tt_con
private

◆ b_use_profiling

bool mhachain::plugs_t::b_use_profiling
private

◆ tictoc

mha_platform_tictoc_t mhachain::plugs_t::tictoc
private

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