![]() |
![]() |
![]() |
Prepare the selected direction
#include <sys/asoundlib.h> int snd_pcm_channel_prepare( snd_pcm_t * handle, int channel );
libasound.so
The snd_pcm_channel_prepare() function prepares hardware to operate in a specified transfer direction. This call is used when hardware requires time for initialization.
This function may be called in all states except SND_PCM_STATUS_NOTREADY (returns -EBADFD) and SND_PCM_STATUS_RUNNING state (returns -EBUSY). If the operation is successful (zero is returned), the driver state is changed to SND_PCM_STATUS_PREPARED.
Zero on success, or an error code.
See the Handling writes section in the Playing Audio Data chapter.
Safety: | |
---|---|
Cancellation point | No |
Interrupt handler | No |
Signal handler | Yes |
Thread | Yes |
![]() |
![]() |
![]() |