![]()  | 
  
    The Open Master Hearing Aid (openMHA)
    openMHA
    
   Open community platform for hearing aid algorithm research 
   | 
 
Handles domain-specific partial input and output signal. More...

Public Member Functions | |
| void | set_input_domain (const mhaconfig_t &settings_in) | 
| Set parameters of input signal.  More... | |
| void | set_output_domain (const mhaconfig_t &settings_out) | 
| Set output signal parameters.  More... | |
| void | deallocate_domains () | 
| Deallocate domain indicators and signal holders.  More... | |
| domain_handler_t (const mhaconfig_t &settings_in, const mhaconfig_t &settings_out, PluginLoader::fourway_processor_t *processor) | |
| Construct a new domain handler once the domains and dimensions of input and output signal of one of the child plugins of split are known.  More... | |
| virtual | ~domain_handler_t () | 
| Deallocation of signal holders.  More... | |
| unsigned | put_signal (mha_wave_t *s_in, unsigned start_channel) | 
| Store the relevant channels from the input signal for processing.  More... | |
| unsigned | put_signal (mha_spec_t *s_in, unsigned start_channel) | 
| Store the relevant channels from the input signal for processing.  More... | |
| unsigned | get_signal (MHASignal::waveform_t *s_out, unsigned start_channel) | 
| Store all partial signal output channels in the combined waveform signal with the given channel offset.  More... | |
| unsigned | get_signal (MHASignal::spectrum_t *s_out, unsigned start_channel) | 
| Store all partial signal output channels in the combined spectrum signal with the given channel offset.  More... | |
| void | process () | 
| Call the processing method of the processor with configured input/output signal domains.  More... | |
  Public Member Functions inherited from MHAPlugin_Split::uni_processor_t | |
| virtual | ~uni_processor_t () | 
| Classes containing virtual methods need virtual destructors.  More... | |
Public Attributes | |
| MHASignal::waveform_t * | wave_in | 
| Partial wave input signal.  More... | |
| mha_wave_t ** | wave_out | 
| Partial wave output signal.  More... | |
| MHASignal::spectrum_t * | spec_in | 
| Partial spec input signal.  More... | |
| mha_spec_t ** | spec_out | 
| Partial spec input signal.  More... | |
| PluginLoader::fourway_processor_t * | processor | 
| The domain-specific signal processing methods are implemented here.  More... | |
Private Member Functions | |
| domain_handler_t (const domain_handler_t &) | |
| Disallow copy constructor.  More... | |
| domain_handler_t & | operator= (const domain_handler_t &) | 
| Disallow assignment operator.  More... | |
Handles domain-specific partial input and output signal.
      
  | 
  private | 
Disallow copy constructor.
      
  | 
  inline | 
Construct a new domain handler once the domains and dimensions of input and output signal of one of the child plugins of split are known.
      
  | 
  inlinevirtual | 
Deallocation of signal holders.
      
  | 
  private | 
Disallow assignment operator.
      
  | 
  inline | 
Set parameters of input signal.
| settings_in | domain and dimensions of partial input signal | 
      
  | 
  inline | 
Set output signal parameters.
| settings_out | domain and dimensions of partial output signal | 
      
  | 
  inline | 
Deallocate domain indicators and signal holders.
      
  | 
  inline | 
Store the relevant channels from the input signal for processing.
The number of channels to store is taken from the dimensions of the partial input signal holder wave_in.
| s_in | The combined waveform input signal. | 
| start_channel | The index (0-based) of the first channel in s_in to be copied to the partial input signal. | 
      
  | 
  inline | 
Store the relevant channels from the input signal for processing.
The number of channels to store is taken from the dimensions of the partial input signal holder spec_in.
| s_in | The combined spectrum input signal. | 
| start_channel | The index (0-based) of the first channel in s_in to be copied to the partial input signal. | 
      
  | 
  inline | 
Store all partial signal output channels in the combined waveform signal with the given channel offset.
All channels present in wave_out will be copied. Caller may use (*wave_out)->num_channels to check the number of channels in advance.
| s_out | The combined waveform output signal. | 
| start_channel | The channel offset (0-based) in s_out. | 
      
  | 
  inline | 
Store all partial signal output channels in the combined spectrum signal with the given channel offset.
All channels present in spec_out will be copied. Caller may use (*spec_out)->num_channels to check the number of channels in advance.
| s_out | The combined spectrum output signal. | 
| start_channel | The channel offset (0-based) in s_out. | 
      
  | 
  inlinevirtual | 
Call the processing method of the processor with configured input/output signal domains.
The input signal has to be stored using put_signal before this method may be called.
Implements MHAPlugin_Split::uni_processor_t.
| MHASignal::waveform_t* MHAPlugin_Split::domain_handler_t::wave_in | 
Partial wave input signal.
| mha_wave_t** MHAPlugin_Split::domain_handler_t::wave_out | 
Partial wave output signal.
| MHASignal::spectrum_t* MHAPlugin_Split::domain_handler_t::spec_in | 
Partial spec input signal.
| mha_spec_t** MHAPlugin_Split::domain_handler_t::spec_out | 
Partial spec input signal.
| PluginLoader::fourway_processor_t* MHAPlugin_Split::domain_handler_t::processor | 
The domain-specific signal processing methods are implemented here.