ioap_hf_go()

Start handsfree acoustic processing.

Synopsis:

#include <acoustic/hf.h>

int ioap_hf_go (int apd) ;

Arguments:

apd
The handle to io-acoustic.

Library:

libacoustic

Description:

The ioap_hf_go() function starts handsfree acoustic processing, initiating the start of audio transfer. It can only be used after acoustic processing has been prepared by calling ioap_hf_prepare().

When it starts, ioap_hf_go() delivers the acoustic processing event IOAP_HF_EVENT_STARTED.

If acoustic processing is already running, calling this function has no effect.

Returns:

0
Success
-1
An error occurred (errno is set).

Errors:

EINVAL
Invalid handle or null pointer argument.
ENOTSUP
The priming interval was too short to be able to start acoustic processing.
EACCES
Acoustic processing is stopped, or has not been prepared.

Classification:

QNX Neutrino

Safety:  
Interrupt handler No
Signal handler No
Thread Yes