snd_pcm_plugin_set_eq()

Set the equalizer (EQ) plugin parameters

Synopsis:

#include <sys/asoundlib.h>

int snd_pcm_plugin_set_eq(snd_pcm_t    *pcm, 
                          snd_pcm_eq_t  eq);

Since:

BlackBerry 10.3.0

Arguments:

pcm
The handle that is returned after a call to snd_pcm_open_* functions.
eq
The EQ preset that's used when the EQ plugin is active.

Library:

libasound.so

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

Description:

The EQ plugin is disabled by default. To enable the plugin, call snd_pcm_plugin_set_enable() . The EQ plugin allows settings to be supplied at any time if the pcm handle is valid. When the device configuration isn't mono or stereo, then the equalizer is disabled (or made inactive). The equalizer on the device becomes disabled because the equalizer available on the system that the device is connected is usually better than what's available on the device itself. A device can connect to another system using a wired (HDMI cable) or unwired mechanism (Bluetooth or Miracast).

You can call snd_pcm_plugin_get_inactive() to determine whether the EQ plugin is active.

Returns:

EOK on success, a negative errno upon failure. The errno values are available in the errno.h file.

Classification:

QNX Neutrino

Safety:  
Cancellation point No
Interrupt handler No
Signal handler Yes
Thread Read the Caveats

Caveats:

This function is not thread safe if pcm (snd_pcm_t) is used across multiple threads.