snd_afm_get_param()
Get a configuration parameter for the specified AFM
Synopsis:
#include <sys/asoundlib.h>
int snd_afm_get_param( snd_afm_t *handle,
int id);
size_t* size);
void* data);
Arguments:
- handle
- The handle for the AFM device, which you must have opened by calling snd_afm_open_name() or snd_afm_open().
- id
- The identifier for the AFM parameter to get the value for.
- size
- The size of the buffer that data points to.
- data
- A pointer to the location to store the retrieved value in.
Library:
libasound.so
Use the -l asound option with qcc to link against this library.
Description:
Note:
This function can only be used if you have QNX Acoustic Management Platform 3.0 installed.
The snd_afm_get_param() function is only used with specific AFMs. For information on which parameters are available for a specific AFM and their expected sizes, see the corresponding AFM header installed under usr/include/ado_afm/.
Returns:
EOK on success, or a negative errno upon failure.
Errors:
- -EAGAIN
- The AFM isn't running.
- -EINVAL
- The state of handle is invalid or an invalid state change occurred.
Classification:
QNX Neutrino
| Safety: | |
|---|---|
| Cancellation point | Yes |
| Interrupt handler | No |
| Signal handler | Yes |
| Thread | Yes |
Caveats:
This function is not thread safe if the handle (snd_afm_t) is used across multiple threads.
Page updated:
