snd_afm_get_audio_mode()

Get the currently applied audio mode

Synopsis:

#include <sys/asoundlib.h>

int snd_afm_get_audio_mode( snd_afm_t *handle,
                            char *mode,
                            int size );

Arguments:

handle
The handle for the AFM device, which you must have opened by calling snd_afm_open_name() or snd_afm_open().
mode
A buffer where the function can store the mode.
size
The size of the mode buffer, in bytes.

Library:

libasound

Use the -l asound option to qcc to link against this library.

Description:

Tip: This function is available for use if you have QNX Acoustic Management Platform 2.0 and Audio component BuildID 594—January 17, 2018 (7.0.594.S201801171044) or a later update installed.

The snd_afm_get_audio_mode() function gets the currently applied audio mode that's used to tune acoustic processing parameters.

Returns:

EOK on success, or a negative errno value upon failure.

Errors:

-EINVAL
The value of handle or mode is NULL.
-ENOMEM
The mode buffer isn't big enough to hold the mode.

Classification:

QNX Neutrino

Safety:  
Cancellation point No
Interrupt handler No
Signal handler No
Thread No