The Open Master Hearing Aid (openMHA)  openMHA
Open community platform for hearing aid algorithm research
dbasync_native::dbasync_t Class Reference
Inheritance diagram for dbasync_native::dbasync_t:
Inheritance graph

Public Member Functions

 dbasync_t (unsigned int nchannels_in, unsigned int nchannels_out, unsigned int outer_fragsize, unsigned int inner_fragsize, int delay, const std::string &thread_scheduler, int thread_priority, MHAParser::mhapluginloader_t &plug)
 
 ~dbasync_t ()
 
mha_wave_touter_process (mha_wave_t *)
 
int svc ()
 
- Public Member Functions inherited from mha_dblbuf_t< mha_fifo_lw_t< mha_real_t > >
virtual unsigned get_inner_size () const
 
virtual unsigned get_outer_size () const
 
virtual unsigned get_delay () const
 
virtual unsigned get_fifo_size () const
 
virtual unsigned get_input_channels () const
 
virtual unsigned get_output_channels () const
 
virtual unsigned get_input_fifo_fill_count () const
 
virtual unsigned get_output_fifo_fill_count () const
 
virtual unsigned get_input_fifo_space () const
 
virtual unsigned get_output_fifo_space () const
 
virtual MHA_Errorget_inner_error () const
 
virtual void provoke_inner_error (const MHA_Error &)
 
virtual void provoke_outer_error (const MHA_Error &)
 
 mha_dblbuf_t (unsigned outer_size, unsigned inner_size, unsigned delay, unsigned input_channels, unsigned output_channels, const value_type &delay_data)
 Constructor creates FIFOs with specified delay. More...
 
virtual ~mha_dblbuf_t ()
 
virtual void process (const value_type *input_signal, value_type *output_signal, unsigned count)
 The outer process has to call this method to propagate the input signal to the inner process, and receives back the output signal. More...
 
virtual void input (value_type *input_signal)
 The inner process has to call this method to receive its input signal. More...
 
virtual void output (const value_type *output_signal)
 The outer process has to call this method to deliver its output signal. More...
 

Private Attributes

MHAParser::mhapluginloader_tplugloader
 
MHASignal::waveform_t inner_input
 
MHASignal::waveform_t outer_output
 
pthread_attr_t attr
 
struct sched_param priority
 
int scheduler
 
pthread_t thread
 

Additional Inherited Members

- Public Types inherited from mha_dblbuf_t< mha_fifo_lw_t< mha_real_t > >
typedef FIFO::value_type value_type
 The datatype exchanged by the FIFO and this doublebuffer. More...
 
- Protected Member Functions inherited from dbasync_native::delay_check_t
 delay_check_t (int delay, unsigned inner_fragsize, unsigned outer_fragsize)
 

Constructor & Destructor Documentation

◆ dbasync_t()

dbasync_native::dbasync_t::dbasync_t ( unsigned int  nchannels_in,
unsigned int  nchannels_out,
unsigned int  outer_fragsize,
unsigned int  inner_fragsize,
int  delay,
const std::string &  thread_scheduler,
int  thread_priority,
MHAParser::mhapluginloader_t plug 
)

◆ ~dbasync_t()

dbasync_native::dbasync_t::~dbasync_t ( )

Member Function Documentation

◆ outer_process()

mha_wave_t * dbasync_native::dbasync_t::outer_process ( mha_wave_t outer_input)

◆ svc()

int dbasync_native::dbasync_t::svc ( )

Member Data Documentation

◆ plugloader

MHAParser::mhapluginloader_t& dbasync_native::dbasync_t::plugloader
private

◆ inner_input

MHASignal::waveform_t dbasync_native::dbasync_t::inner_input
private

◆ outer_output

MHASignal::waveform_t dbasync_native::dbasync_t::outer_output
private

◆ attr

pthread_attr_t dbasync_native::dbasync_t::attr
private

◆ priority

struct sched_param dbasync_native::dbasync_t::priority
private

◆ scheduler

int dbasync_native::dbasync_t::scheduler
private

◆ thread

pthread_t dbasync_native::dbasync_t::thread
private

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