struct snd_pcm_ioplug
Overview
Handle of ioplug
I/O plugin handle Moreā¦
#include <pcm_ioplug.h> struct snd_pcm_ioplug { // fields unsigned int version; const char* name; unsigned int flags; int poll_fd; unsigned int poll_events; unsigned int mmap_rw; const snd_pcm_ioplug_callback_t* callback; void* private_data; snd_pcm_t* pcm; snd_pcm_stream_t stream; snd_pcm_state_t state; snd_pcm_uframes_t appl_ptr; snd_pcm_uframes_t hw_ptr; int nonblock; snd_pcm_access_t access; snd_pcm_format_t format; unsigned int channels; unsigned int rate; snd_pcm_uframes_t period_size; snd_pcm_uframes_t buffer_size; };
Detailed Documentation
Handle of ioplug
I/O plugin handle
Fields
unsigned int version
protocol version; SND_PCM_IOPLUG_VERSION must be filled here before calling snd_pcm_ioplug_create()
const char* name
name of this plugin; must be filled before calling snd_pcm_ioplug_create()
unsigned int flags
SND_PCM_IOPLUG_FLAG_XXX
int poll_fd
poll file descriptor
unsigned int poll_events
poll events
unsigned int mmap_rw
pseudo mmap mode
const snd_pcm_ioplug_callback_t* callback
callbacks of this plugin; must be filled before calling snd_pcm_ioplug_create()
void* private_data
private data, which can be used freely in the driver callbacks
snd_pcm_t* pcm
PCM handle filled by snd_pcm_extplug_create()
snd_pcm_stream_t stream
stream direcion; read-only
snd_pcm_state_t state
current PCM state; read-only
snd_pcm_uframes_t appl_ptr
application pointer; read-only
snd_pcm_uframes_t hw_ptr
hw pointer; read-only
int nonblock
non-block mode; read-only
snd_pcm_access_t access
access type; filled after hw_params is called
snd_pcm_format_t format
PCM format; filled after hw_params is called
unsigned int channels
number of channels; filled after hw_params is called
unsigned int rate
rate; filled after hw_params is called
snd_pcm_uframes_t period_size
period size; filled after hw_params is called
snd_pcm_uframes_t buffer_size
buffer size; filled after hw_params is called