[Previous] [Contents] [Next]

snd_pcm_plugin_read()

Transfer PCM stream from capture subdevice

Synopsis:

#include <sys/asoundlib.h>

ssize_t snd_pcm_plugin_read( snd_pcm_t * handle, 
                             void * buffer, 
                             size_t size );

Library:

libasound.so

Description:

The snd_pcm_plugin_read() function reads samples from the device which must be in the proper format specified by snd_pcm_channel_prepare(). This function is similar to snd_pcm_write().

Errors:

-EFAULT
Failed to copy data.
-EINVAL
Invalid handle; data pointer is NULL but size isn't zero or is negative.
-ENOMEM
Unable to allocate memory for plugin buffers.

Classification:

ALSA

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

[Previous] [Contents] [Next]