Set the audio mode used to tune acoustic processing parameters
#include <sys/asoundlib.h> int snd_afm_set_audio_mode( snd_afm_t *handle, const char *mode );
(QNX Software Development Platform 6.6 io-audio patch [patch ID 4510] or later) The snd_afm_set_audio_mode() function sets the audio mode that's used to tune acoustic processing parameters.
The mode string is appended to ap_qcf_ to create a .conf key used to look up the acoustic tuning file path. Passing an empty string sets the mode back to default. An error is returned and the mode remains unchanged if the key can't be found in the .conf or if the associated path can't be found in the filesystem.
You should call snd_afm_set_audio_mode() only when the AFM is stopped or idle.
EOK on success, or a negative errno value upon failure.
Safety: | |
---|---|
Cancellation point | No |
Interrupt handler | No |
Signal handler | No |
Thread | No |