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

Classes

class  MHAIOJack::io_jack_t
 Main class for JACK IO. More...
 

Namespaces

 MHAIOJack
 JACK IO.
 

Macros

#define ERR_SUCCESS   0
 
#define ERR_IHANDLE   -1
 
#define ERR_USER   -1000
 
#define MAX_USER_ERR   0x500
 
#define IOInit   MHA_STATIC_MHAIOJack_IOInit
 
#define IOPrepare   MHA_STATIC_MHAIOJack_IOPrepare
 
#define IOStart   MHA_STATIC_MHAIOJack_IOStart
 
#define IOStop   MHA_STATIC_MHAIOJack_IOStop
 
#define IORelease   MHA_STATIC_MHAIOJack_IORelease
 
#define IOSetVar   MHA_STATIC_MHAIOJack_IOSetVar
 
#define IOStrError   MHA_STATIC_MHAIOJack_IOStrError
 
#define IODestroy   MHA_STATIC_MHAIOJack_IODestroy
 
#define dummy_interface_test   MHA_STATIC_MHAIOJack_dummy_interface_test
 

Functions

int IOInit (int fragsize, float samplerate, IOProcessEvent_t proc_event, void *proc_handle, IOStartedEvent_t start_event, void *start_handle, IOStoppedEvent_t stop_event, void *stop_handle, void **handle)
 
int IOPrepare (void *handle, int nch_in, int nch_out)
 
int IOStart (void *handle)
 
int IOStop (void *handle)
 
int IORelease (void *handle)
 
int IOSetVar (void *handle, const char *command, char *retval, unsigned int maxretlen)
 
const char * IOStrError (void *, int err)
 
void IODestroy (void *handle)
 

Variables

static char user_err_msg [MAX_USER_ERR] = ""
 

Macro Definition Documentation

◆ ERR_SUCCESS

#define ERR_SUCCESS   0

◆ ERR_IHANDLE

#define ERR_IHANDLE   -1

◆ ERR_USER

#define ERR_USER   -1000

◆ MAX_USER_ERR

#define MAX_USER_ERR   0x500

◆ IOInit

#define IOInit   MHA_STATIC_MHAIOJack_IOInit

◆ IOPrepare

#define IOPrepare   MHA_STATIC_MHAIOJack_IOPrepare

◆ IOStart

#define IOStart   MHA_STATIC_MHAIOJack_IOStart

◆ IOStop

#define IOStop   MHA_STATIC_MHAIOJack_IOStop

◆ IORelease

#define IORelease   MHA_STATIC_MHAIOJack_IORelease

◆ IOSetVar

#define IOSetVar   MHA_STATIC_MHAIOJack_IOSetVar

◆ IOStrError

#define IOStrError   MHA_STATIC_MHAIOJack_IOStrError

◆ IODestroy

#define IODestroy   MHA_STATIC_MHAIOJack_IODestroy

◆ dummy_interface_test

#define dummy_interface_test (   void)    MHA_STATIC_MHAIOJack_dummy_interface_test

Function Documentation

◆ IOInit()

int IOInit ( int  fragsize,
float  samplerate,
IOProcessEvent_t  proc_event,
void *  proc_handle,
IOStartedEvent_t  start_event,
void *  start_handle,
IOStoppedEvent_t  stop_event,
void *  stop_handle,
void **  handle 
)

◆ IOPrepare()

int IOPrepare ( void *  handle,
int  nch_in,
int  nch_out 
)

◆ IOStart()

int IOStart ( void *  handle)

◆ IOStop()

int IOStop ( void *  handle)

◆ IORelease()

int IORelease ( void *  handle)

◆ IOSetVar()

int IOSetVar ( void *  handle,
const char *  command,
char *  retval,
unsigned int  maxretlen 
)

◆ IOStrError()

const char* IOStrError ( void *  ,
int  err 
)

◆ IODestroy()

void IODestroy ( void *  handle)

Variable Documentation

◆ user_err_msg

char user_err_msg[MAX_USER_ERR] = ""
static