Return the file descriptor of the connection to the PCM interface
#include <sys/asoundlib.h> int snd_pcm_file_descriptor( snd_pcm_t *handle, int channel );
Use the -l asound option to qcc to link against this library.
The snd_pcm_file_descriptor() function returns the file descriptor of the connection to the PCM interface.
You can use this file descriptor for the select() synchronous multiplexer function (see the BlackBerry 10 OS C Library Reference).
The file descriptor of the connection to the PCM interface on success, or a negative error code.
- The state of handle is invalid, an invalid channel was provided as input, or an invalid state change occurred. You can call snd_pcm_channel_status() to check if the state change was invalid.
|Thread||Read the Caveats|
This function is not thread safe if handle (snd_pcm_t) is used across multiple threads.
Last modified: 2014-06-24