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

Base class for all acwriter_t's. More...

Inheritance diagram for ac2xdf::acwriter_base_t:
Inheritance graph

Public Member Functions

virtual void process (comm_var_t &)=0
 Place the data present in the algorithm communication variable into the fifo for output to disk. More...
 
virtual void exit_request ()=0
 Terminate output thread. Returns after exit thread has joined. More...
 
virtual const char * get_varname () const =0
 getter for ac variable name More...
 
virtual ~acwriter_base_t ()=default
 

Detailed Description

Base class for all acwriter_t's.

This class decouples signal processing from writing to disk. There's one acwriter per AC variable to be written to disk. Each instance of acwriter spawns its own writer thread and has its own internal FIFO to safely move the samples of the AC variable out of the processing thread. All acwriters share an output file. It's not problematic when an acwriter has to wait for write access because the waiting does happen in its own thread, not in the audio thread.

Constructor & Destructor Documentation

◆ ~acwriter_base_t()

virtual ac2xdf::acwriter_base_t::~acwriter_base_t ( )
virtualdefault

Member Function Documentation

◆ process()

virtual void ac2xdf::acwriter_base_t::process ( comm_var_t )
pure virtual

Place the data present in the algorithm communication variable into the fifo for output to disk.

Implemented in ac2xdf::acwriter_t< T >.

◆ exit_request()

virtual void ac2xdf::acwriter_base_t::exit_request ( )
pure virtual

Terminate output thread. Returns after exit thread has joined.

Implemented in ac2xdf::acwriter_t< T >.

◆ get_varname()

virtual const char* ac2xdf::acwriter_base_t::get_varname ( ) const
pure virtual

getter for ac variable name

Returns
name as char* as needed by get_var

Implemented in ac2xdf::acwriter_t< T >.


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