![]()  | 
  
    The Open Master Hearing Aid (openMHA)
    openMHA
    
   Open community platform for hearing aid algorithm research 
   | 
 
A combination of mha parser variables to describe an overalapadd analysis window. More...
Public Member Functions | |
| windowselector_t (const std::string &default_type) | |
| constructor creates the mha parser variables that describe an overlapadd analysis window.  More... | |
| ~windowselector_t () | |
| destructor frees window data that were allocated  More... | |
| const MHAWindow::base_t & | get_window_data (unsigned length) | 
| re-computes the window if required.  More... | |
| void | insert_items (MHAParser::parser_t *p) | 
| insert the window parameters "wndtype", "wndexp", and "userwnd" as mha configuration parameters into the given mha configuration parser.  More... | |
| void | setlock (bool b_) | 
| Lock/Unlock variables.  More... | |
Public Attributes | |
| MHAEvents::emitter_t | updated | 
| A collector event that fires when any of the window parameters managed here is written to.  More... | |
Private Member Functions | |
| void | invalidate_window_data () | 
| invalidates any allocated window samples.  More... | |
| void | update_parser () | 
| invoked when a parser parameter changes.  More... | |
Private Attributes | |
| MHAWindow::base_t * | wnd | 
| Storage for the window data returned by get_window_data()  More... | |
| MHAParser::kw_t | wndtype | 
| parser variable for window type  More... | |
| MHAParser::float_t | wndexp | 
| parser variable for window exponent  More... | |
| MHAParser::vfloat_t | userwnd | 
| parser variable for user window samples to use  More... | |
| MHAEvents::patchbay_t< windowselector_t > | patchbay | 
| patchbay to watch for changes for the parser variables  More... | |
A combination of mha parser variables to describe an overalapadd analysis window.
Provides a method to get the window samples as an instance of MHAWindow::base_t when needed.
| windowselector_t::windowselector_t | ( | const std::string & | default_type | ) | 
constructor creates the mha parser variables that describe an overlapadd analysis window.
| default_type | name of the default analysis window type. Must be one of: "rect", "bartlett", "hanning", "hamming", "blackman" | 
| windowselector_t::~windowselector_t | ( | ) | 
destructor frees window data that were allocated
| const MHAWindow::base_t & windowselector_t::get_window_data | ( | unsigned | length | ) | 
re-computes the window if required.
| length | the desired window length in samples return the window's samples as a constref to MHAWindow::base_t instance. The referenced instance lives until the window parameters are changed, or this windowselector_t instance is destroyed. | 
| void windowselector_t::insert_items | ( | MHAParser::parser_t * | p | ) | 
insert the window parameters "wndtype", "wndexp", and "userwnd" as mha configuration parameters into the given mha configuration parser.
| p | The configuration parser where to insert the window parameters. E.g. the plugin wave2spec's interface class. | 
| void windowselector_t::setlock | ( | bool | b_ | ) | 
Lock/Unlock variables.
| b_ | Desired lock state | 
      
  | 
  private | 
invalidates any allocated window samples.
      
  | 
  private | 
invoked when a parser parameter changes.
Calls invalidate_window_data() and emits the updated event.
| MHAEvents::emitter_t windowselector_t::updated | 
A collector event that fires when any of the window parameters managed here is written to.
      
  | 
  private | 
Storage for the window data returned by get_window_data()
      
  | 
  private | 
parser variable for window type
      
  | 
  private | 
parser variable for window exponent
      
  | 
  private | 
parser variable for user window samples to use
      
  | 
  private | 
patchbay to watch for changes for the parser variables