[Previous] [Contents] [Next]

snd_pcm_file_descriptor()

Return the file descriptor of the connection to the audio interface

Synopsis:

#include <sys/asoundlib.h>

int snd_pcm_file_descriptor( snd_pcm_t * handle, 
                             int channel );

Library:

libasound.so

Description:

The snd_pcm_file_descriptor() function returns the file descriptor of the connection to the sound audio interface.

The file descriptor should be used for the select() synchronous multiplexer function for setting the read direction.

Returns:

The file descriptor of the connection to the audio interface on success, or an error code.

Errors:

-EINVAL
Invalid handle argument.

Classification:

ALSA

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

[Previous] [Contents] [Next]