The Open Master Hearing Aid (openMHA)  openMHA
Open community platform for hearing aid algorithm research
PluginLoader::fourway_processor_t Class Referenceabstract

This abstract class defines the interface for classes that implement all types of signal domain processing supported by the MHA: wave2wave, spec2spec, wave2spec, and spec2wave. More...

Inheritance diagram for PluginLoader::fourway_processor_t:
Inheritance graph

Public Member Functions

virtual void process (mha_wave_t *s_in, mha_wave_t **s_out)=0
 Pure waveform processing. More...
 
virtual void process (mha_spec_t *s_in, mha_spec_t **s_out)=0
 Pure spectrum processing. More...
 
virtual void process (mha_wave_t *s_in, mha_spec_t **s_out)=0
 Signal processing with domain transformation from waveform to spectrum. More...
 
virtual void process (mha_spec_t *s_in, mha_wave_t **s_out)=0
 Signal processing with domain transformation from spectrum to waveform. More...
 
virtual void prepare (mhaconfig_t &settings)=0
 Prepares the processor for signal processing. More...
 
virtual void release ()=0
 Resources allocated for signal processing in fourway_processor_t::prepare are released here in fourway_processor_t::release. More...
 
virtual std::string parse (const std::string &query)=0
 Parser interface. More...
 
virtual ~fourway_processor_t ()
 Classes with virtual methods need virtual destructor. More...
 

Detailed Description

This abstract class defines the interface for classes that implement all types of signal domain processing supported by the MHA: wave2wave, spec2spec, wave2spec, and spec2wave.

For supporting different output domains for the same input domain, the processing methods are overloaded with respect to input domain and output domain.

Constructor & Destructor Documentation

◆ ~fourway_processor_t()

virtual PluginLoader::fourway_processor_t::~fourway_processor_t ( )
inlinevirtual

Classes with virtual methods need virtual destructor.

This destructor is empty.

Member Function Documentation

◆ process() [1/4]

virtual void PluginLoader::fourway_processor_t::process ( mha_wave_t s_in,
mha_wave_t **  s_out 
)
pure virtual

Pure waveform processing.

Parameters
s_ininput waveform signal
s_outoutput waveform signal

Implemented in PluginLoader::mhapluginloader_t.

◆ process() [2/4]

virtual void PluginLoader::fourway_processor_t::process ( mha_spec_t s_in,
mha_spec_t **  s_out 
)
pure virtual

Pure spectrum processing.

Parameters
s_ininput spectrum signal
s_outoutput spectrum signal

Implemented in PluginLoader::mhapluginloader_t.

◆ process() [3/4]

virtual void PluginLoader::fourway_processor_t::process ( mha_wave_t s_in,
mha_spec_t **  s_out 
)
pure virtual

Signal processing with domain transformation from waveform to spectrum.

Parameters
s_ininput waveform signal
s_outoutput spectrum signal

Implemented in PluginLoader::mhapluginloader_t.

◆ process() [4/4]

virtual void PluginLoader::fourway_processor_t::process ( mha_spec_t s_in,
mha_wave_t **  s_out 
)
pure virtual

Signal processing with domain transformation from spectrum to waveform.

Parameters
s_ininput spectrum signal
s_outoutput waveform signal

Implemented in PluginLoader::mhapluginloader_t.

◆ prepare()

virtual void PluginLoader::fourway_processor_t::prepare ( mhaconfig_t settings)
pure virtual

Prepares the processor for signal processing.

Parameters
settingsdomain and dimensions of the signal. The contents of settings may be modified by the prepare implementation. Upon calling fourway_processor_t::prepare, settings reflects domain and dimensions of the input signal. When fourway_processor_t::prepare returns, settings reflects domain and dimensions of the output signal.

Implemented in plug_t, mhaplug_cfg_t, and PluginLoader::mhapluginloader_t.

◆ release()

virtual void PluginLoader::fourway_processor_t::release ( )
pure virtual

Resources allocated for signal processing in fourway_processor_t::prepare are released here in fourway_processor_t::release.

Implemented in plug_t, mhaplug_cfg_t, and PluginLoader::mhapluginloader_t.

◆ parse()

virtual std::string PluginLoader::fourway_processor_t::parse ( const std::string &  query)
pure virtual

Parser interface.

Implemented in PluginLoader::mhapluginloader_t, and plug_wrapper.


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