ioap_hf_register_events()

Register to receive handsfree acoustic processing events.

Synopsis:

#include <acoustic/hf.h>

int ioap_hf_register_events(int apd, int events) ;

Arguments:

apd
The handle to io-acoustic.
events
Reserved. Set to IOAP_HF_EVENT_ALL.

Library:

libacoustic

Description:

The ioap_hf_register_events() function registers your process to receive handsfree events. After you have registered to receive events, you can call ioap_hf_read_events() to get events.

Returns:

>0
Success: ID of the opened device.
-1
An error occurred (errno is set).

Errors:

EINVAL
Invalid handle or null pointer argument.
ENOMEM
No memory available for data structures.
EBUSY
ioap_hf_register_events() is being called twice.

Classification:

QNX Neutrino

Safety:  
Interrupt handler No
Signal handler No
Thread Yes