snd_ctl_ducking_read()

Get the audio streams that are active

Synopsis:

#include <sys/asoundlib.h>

int snd_ctl_ducking_read(snd_ctl_t *handle, 
                         const char* ducking_output, 
                         snd_ducking_status_t **info );

Arguments:

handle
The handle for the control connection to the card. This must be a handle created by snd_ctl_open().
ducking_output
The names of the ducking output to monitor.
info
A pointer to location where a snd_ducking_status_t structure is stored. The structure contains information about the audio types that are active. If the call is successful, the system allocates memory for you, therefore it's the responsibility of the caller to free the allocated memory. This value can't be NULL.

Library:

libasound.so

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

Description:

The snd_ctl_ducking_read() function reads the current ducking status. Use this function to get information about what audio types are active after you receive a SND_CTL_READ_AUDIOMGMT_CHG event in an audiomgmt callback.

Returns:

The file descriptor of the connection to the control interface, or a negative value if an error occurs.

Errors:

-EINVAL
Invalid handle or info argument.

Classification:

QNX Neutrino

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