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

Macros

#define MHAIO_DOCUMENTATION_PREFIX(prefix, cat, doc)
 
#define MHAIO_DOCUMENTATION(plugname, cat, doc)   MHAIO_DOCUMENTATION_PREFIX(MHA_STATIC_ ## plugname ## _,cat,doc)
 

Typedefs

typedef int(* IOProcessEvent_t) (void *handle, mha_wave_t *sIn, mha_wave_t **sOut)
 Event handler for signal stream. More...
 
typedef void(* IOStoppedEvent_t) (void *handle, int proc_err, int io_err)
 Event handler for stop event. More...
 
typedef void(* IOStartedEvent_t) (void *handle)
 Event handler for start event. More...
 
typedef int(* IOInit_t) (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)
 
typedef int(* IOPrepare_t) (void *handle, int num_inchannels, int num_outchannels)
 
typedef int(* IOStart_t) (void *handle)
 
typedef int(* IOStop_t) (void *handle)
 
typedef int(* IORelease_t) (void *handle)
 
typedef int(* IOSetVar_t) (void *handle, const char *cmd, char *retval, unsigned int len)
 
typedef void(* IODestroy_t) (void *handle)
 

Variables

const typedef char *(* IOStrError_t )(void *handle, int err)
 

Macro Definition Documentation

◆ MHAIO_DOCUMENTATION_PREFIX

#define MHAIO_DOCUMENTATION_PREFIX (   prefix,
  cat,
  doc 
)

◆ MHAIO_DOCUMENTATION

#define MHAIO_DOCUMENTATION (   plugname,
  cat,
  doc 
)    MHAIO_DOCUMENTATION_PREFIX(MHA_STATIC_ ## plugname ## _,cat,doc)

Typedef Documentation

◆ IOProcessEvent_t

typedef int(* IOProcessEvent_t) (void *handle, mha_wave_t *sIn, mha_wave_t **sOut)

Event handler for signal stream.

This event handler needs to be realtime compatible. All signal path processing will be performed in this callback.

◆ IOStoppedEvent_t

typedef void(* IOStoppedEvent_t) (void *handle, int proc_err, int io_err)

Event handler for stop event.

This event handler needs to be realtime compatible. The function must return immediatly.

◆ IOStartedEvent_t

typedef void(* IOStartedEvent_t) (void *handle)

Event handler for start event.

This event handler needs to be realtime compatible. The function must return immediatly.

◆ IOInit_t

typedef int(* IOInit_t) (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_t

typedef int(* IOPrepare_t) (void *handle, int num_inchannels, int num_outchannels)

◆ IOStart_t

typedef int(* IOStart_t) (void *handle)

◆ IOStop_t

typedef int(* IOStop_t) (void *handle)

◆ IORelease_t

typedef int(* IORelease_t) (void *handle)

◆ IOSetVar_t

typedef int(* IOSetVar_t) (void *handle, const char *cmd, char *retval, unsigned int len)

◆ IODestroy_t

typedef void(* IODestroy_t) (void *handle)

Variable Documentation

◆ IOStrError_t

const typedef char*(* IOStrError_t) (void *handle, int err)