ioap_hf_get_output_volume()

Get the output volume.

Synopsis:

#include <acoustic/hf.h>

int ioap_hf_get_output_volume(int apd,  int32_t* volume);
        

Arguments:

apd
The handle to io-acoustic.
volume
Pointer to the handsfree acoustic processing volume.

Library:

libacoustic

Description:

The ioap_hf_get_output_volume() function retrieves the handsfree acoustic processing volume.

If your system is configured to allow the volume to be set through the API (volumecontrol is set to true in the configuration file), you can set the volume by calling ioap_hf_set_output_volume(). The valid range is from 0 (minimum) to 100 (maximum).

Returns:

0
Success: the volume setting.
-1
An error occurred (errno is set).

Errors:

EINVAL
Invalid handle or null pointer argument.

Classification:

QNX Neutrino

Safety:  
Interrupt handler No
Signal handler No
Thread Yes