Set the output volume.
#include <acoustic/hf.h> int ioap_hf_set_output_volume(int apd, int32_t* volume);
libacoustic
The ioap_hf_set output_volume() sets the handsfree acoustic processing volume. The valid range is 0 (minumum) to 100 (maximum). Values outside this range are clamped; for example, if you try to set the volume to 120, the system will set it at 100.
If acoustic processing is active, the volume change takes effect immediately. If acoustic processing isn't active, the change takes effect the next time acoustic processing is started.
To retrieve the volume setting, call ioap_hf_get_output_volume().
QNX Neutrino
Safety: | |
---|---|
Interrupt handler | No |
Signal handler | No |
Thread | Yes |