The Open Master Hearing Aid (openMHA)
openMHA
Open community platform for hearing aid algorithm research
|
Classes | |
class | alsa_base_t |
class | alsa_dev_par_parser_t |
Parser variables corresponding to one alsa device. More... | |
class | alsa_t< T > |
Our representation of one alsa device. More... | |
class | io_alsa_t |
MHA IO interface class for ALSA IO. More... | |
Macros | |
#define | DBG(x) fprintf(stderr,"%s:%d\n",__FILE__,__LINE__) |
#define | ERR_SUCCESS 0 |
#define | ERR_IHANDLE -1 |
#define | ERR_USER -1000 |
#define | MAX_USER_ERR 0x500 |
#define | IOInit MHA_STATIC_MHAIOalsa_IOInit |
#define | IOPrepare MHA_STATIC_MHAIOalsa_IOPrepare |
#define | IOStart MHA_STATIC_MHAIOalsa_IOStart |
#define | IOStop MHA_STATIC_MHAIOalsa_IOStop |
#define | IORelease MHA_STATIC_MHAIOalsa_IORelease |
#define | IOSetVar MHA_STATIC_MHAIOalsa_IOSetVar |
#define | IOStrError MHA_STATIC_MHAIOalsa_IOStrError |
#define | IODestroy MHA_STATIC_MHAIOalsa_IODestroy |
#define | dummy_interface_test MHA_STATIC_MHAIOalsa_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) |
IO library initialization function, called by framework after loading this IO library into the MHA process. More... | |
int | IOPrepare (void *handle, int nch_in, int nch_out) |
IO library prepare function, called after the MHA prepared the processing plugins. More... | |
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] |
#define DBG | ( | x | ) | fprintf(stderr,"%s:%d\n",__FILE__,__LINE__) |
#define ERR_SUCCESS 0 |
#define ERR_IHANDLE -1 |
#define ERR_USER -1000 |
#define MAX_USER_ERR 0x500 |
#define IOInit MHA_STATIC_MHAIOalsa_IOInit |
#define IOPrepare MHA_STATIC_MHAIOalsa_IOPrepare |
#define IOStart MHA_STATIC_MHAIOalsa_IOStart |
#define IOStop MHA_STATIC_MHAIOalsa_IOStop |
#define IORelease MHA_STATIC_MHAIOalsa_IORelease |
#define IOSetVar MHA_STATIC_MHAIOalsa_IOSetVar |
#define IOStrError MHA_STATIC_MHAIOalsa_IOStrError |
#define IODestroy MHA_STATIC_MHAIOalsa_IODestroy |
void dummy_interface_test | ( | void | ) | MHA_STATIC_MHAIOalsa_dummy_interface_test |
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 | ||
) |
IO library initialization function, called by framework after loading this IO library into the MHA process.
Gives plugin callback functions and callback handles to interact with the MHA framework.
handle | output parameter. IO library returns pointer to void to the caller via this parameter. All other function calls from the MHA framework will use this handle. |
int IOPrepare | ( | void * | handle, |
int | nch_in, | ||
int | nch_out | ||
) |
IO library prepare function, called after the MHA prepared the processing plugins.
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 | ) |
|
static |