Set the routing between the hardware and the acoustic processing inputs and outputs.
#include <acoustic/hf.h>
int ioap_hf_route(int apd,
ioap_io_map_t* map);
libacoustic
The ioap_hf_route() function modifies the audio routing between the hardware and the acoustic processing inputs and outputs.
If the call to ioap_hf_route() fails, the routing is unchanged. If the call is successful, the system maintains the routing even after ioap_hf_stop() has been called; that is, the new routing will be kept until the next call to ioap_hf_route(), or a system restart.
Routing is defined in the structure ioap_map_io_t, and must respect the following rules:
For more information about the default routing, see Configuring io-acoustic. For information about the current routing configuration, call ioap_hf_setup().
QNX Neutrino
Safety: | |
---|---|
Interrupt handler | No |
Signal handler | No |
Thread | Yes |