The Open Master Hearing Aid (openMHA)  openMHA
Open community platform for hearing aid algorithm research
mhajack.h File Reference

Classes

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

Namespaces

 MHAJack
 Classes and functions for openMHA and JACK interaction.
 

Macros

#define MHAJACK_FW_STARTED   1
 
#define MHAJACK_STOPPED   2
 
#define MHAJACK_STARTING   8
 
#define IO_ERROR_JACK   11
 
#define IO_ERROR_MHAJACKLIB   12
 
#define MAX_USER_ERR   0x500
 

Functions

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. More...
 
std::vector< unsigned int > MHAJack::get_port_capture_latency (const std::vector< std::string > &ports)
 Return the JACK port latency of ports. More...
 
std::vector< int > MHAJack::get_port_capture_latency_int (const std::vector< std::string > &ports)
 Return the JACK port latency of ports. More...
 
std::vector< unsigned int > MHAJack::get_port_playback_latency (const std::vector< std::string > &ports)
 Return the JACK port latency of ports. More...
 
std::vector< int > MHAJack::get_port_playback_latency_int (const std::vector< std::string > &ports)
 

Variables

char last_jack_err_msg [MAX_USER_ERR]
 

Macro Definition Documentation

◆ MHAJACK_FW_STARTED

#define MHAJACK_FW_STARTED   1

◆ MHAJACK_STOPPED

#define MHAJACK_STOPPED   2

◆ MHAJACK_STARTING

#define MHAJACK_STARTING   8

◆ IO_ERROR_JACK

#define IO_ERROR_JACK   11

◆ IO_ERROR_MHAJACKLIB

#define IO_ERROR_MHAJACKLIB   12

◆ MAX_USER_ERR

#define MAX_USER_ERR   0x500

Variable Documentation

◆ last_jack_err_msg

char last_jack_err_msg[MAX_USER_ERR]
extern