ado_mixer_lock()

Limit access to the mixer

Synopsis:

#include <audio_driver.h>

int32_t ado_mixer_lock( ado_mixer_t *mixer );

Arguments:

mixer
A pointer to the ado_mixer_t structure for the mixer.

Description:

The ado_mixer_lock() locks the attribute structure, limiting access to the mixer. This function is a cover of iofunc_attr_lock(), using the mixer attributes.

The library automatically locks the mixer's attributes structure before any low-level mixer code is called, so you need this function only if some other functions, such as the PCM functions, need to manipulate the mixer structure.

Returns:

EOK
Success.
EAGAIN
On the first use, all kernel mutex objects were in use.

Classification:

QNX Neutrino

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

See also:

ado_mixer_unlock()

iofunc_attr_lock() in the QNX Library Reference