The Open Master Hearing Aid (openMHA)  openMHA
Open community platform for hearing aid algorithm research
MHAJack Namespace Reference

Classes and functions for openMHA and JACK interaction. More...

Classes

class  port_t
 Class for one channel/port. More...
 
class  client_t
 Generic asynchronous JACK client. More...
 
class  client_noncont_t
 Generic client for synchronous playback and recording of waveform fragments. More...
 
class  client_avg_t
 Generic JACK client for averaging a system response across time. More...
 

Functions

void io (mha_wave_t *s_out, mha_wave_t *s_in, const std::string &name, const std::vector< std::string > &p_out, const std::vector< std::string > &p_in, float *srate=NULL, unsigned int *fragsize=NULL, bool use_jack_transport=false)
 Functional form of generic client for synchronous playback and recording of waveform fragments. More...
 
std::vector< unsigned int > get_port_capture_latency (const std::vector< std::string > &ports)
 Return the JACK port latency of ports. More...
 
std::vector< int > get_port_capture_latency_int (const std::vector< std::string > &ports)
 Return the JACK port latency of ports. More...
 
std::vector< unsigned int > get_port_playback_latency (const std::vector< std::string > &ports)
 Return the JACK port latency of ports. More...
 
std::vector< int > get_port_playback_latency_int (const std::vector< std::string > &ports)
 

Detailed Description

Classes and functions for openMHA and JACK interaction.

Function Documentation

◆ io()

void MHAJack::io ( mha_wave_t s_out,
mha_wave_t s_in,
const std::string &  name,
const std::vector< std::string > &  p_out,
const std::vector< std::string > &  p_in,
float *  srate = NULL,
unsigned int *  fragsize = NULL,
bool  use_jack_transport = false 
)

Functional form of generic client for synchronous playback and recording of waveform fragments.

◆ get_port_capture_latency()

std::vector< unsigned int > MHAJack::get_port_capture_latency ( const std::vector< std::string > &  ports)

Return the JACK port latency of ports.

Parameters
portsPorts to be tested
Returns
Latency vector (one entry for each port)

◆ get_port_capture_latency_int()

std::vector< int > MHAJack::get_port_capture_latency_int ( const std::vector< std::string > &  ports)

Return the JACK port latency of ports.

Parameters
portsPorts to be tested
Returns
Latency vector (one entry for each port)

◆ get_port_playback_latency()

std::vector< unsigned int > MHAJack::get_port_playback_latency ( const std::vector< std::string > &  ports)

Return the JACK port latency of ports.

Parameters
portsPorts to be tested
Returns
Latency vector (one entry for each port)

◆ get_port_playback_latency_int()

std::vector< int > MHAJack::get_port_playback_latency_int ( const std::vector< std::string > &  ports)