The Open Master Hearing Aid (openMHA)
openMHA
Open community platform for hearing aid algorithm research
|
TCP sound-io library's interface to the framework callbacks. More...
Public Member Functions | |
io_asterisk_fwcb_t (IOProcessEvent_t proc_event, void *proc_handle, IOStartedEvent_t start_event, void *start_handle, IOStoppedEvent_t stop_event, void *stop_handle) | |
Constructor stores framework handles and initializes error numbers to 0. More... | |
virtual | ~io_asterisk_fwcb_t () |
Do-nothing destructor. More... | |
virtual void | start () |
Call the framework's start callback. More... | |
virtual int | process (mha_wave_t *sIn, mha_wave_t *&sOut) |
Call the frameworks processing callback. More... | |
virtual void | set_errnos (int proc_err, int io_err) |
Save error numbers to use during. More... | |
virtual void | stop () |
Call the frameworks stop callback. More... | |
Private Attributes | |
IOProcessEvent_t | proc_event |
Pointer to signal processing callback function. More... | |
IOStartedEvent_t | start_event |
Pointer to start notification callback function. More... | |
IOStoppedEvent_t | stop_event |
Pointer to stop notification callback function. More... | |
void * | proc_handle |
Handles belonging to framework. More... | |
void * | start_handle |
void * | stop_handle |
int | proc_err |
Errors from the processing callback and from the TCP IO itself are stored here before closing Network handles. More... | |
int | io_err |
TCP sound-io library's interface to the framework callbacks.
io_asterisk_fwcb_t::io_asterisk_fwcb_t | ( | IOProcessEvent_t | proc_event, |
void * | proc_handle, | ||
IOStartedEvent_t | start_event, | ||
void * | start_handle, | ||
IOStoppedEvent_t | stop_event, | ||
void * | stop_handle | ||
) |
Constructor stores framework handles and initializes error numbers to 0.
|
inlinevirtual |
Do-nothing destructor.
|
virtual |
Call the framework's start callback.
|
virtual |
Call the frameworks processing callback.
sIn | The input sound data just received from TCP. |
sOut | A pointer to output sound data. Will point to the output sound data storage when the callback finishes. |
|
virtual |
|
virtual |
|
private |
Pointer to signal processing callback function.
|
private |
Pointer to start notification callback function.
Called when a new TCP connection is established or the user issues the start command while there is a connection.
|
private |
Pointer to stop notification callback function.
Called when the connection is closed.
|
private |
Handles belonging to framework.
|
private |
|
private |
|
private |
Errors from the processing callback and from the TCP IO itself are stored here before closing Network handles.
MHAIOTCP is notified by the server when the connection has been taken down, and calls
|
private |