Main Page | Modules | Data Structures | File List | Data Fields | Globals | Related Pages | Examples

Simple setup functions
[PCM Interface]


Typedefs

typedef enum _snd_spcm_latency snd_spcm_latency_t
typedef enum _snd_spcm_xrun_type snd_spcm_xrun_type_t
typedef enum _snd_spcm_duplex_type snd_spcm_duplex_type_t

Enumerations

enum  _snd_spcm_latency { SND_SPCM_LATENCY_STANDARD = 0, SND_SPCM_LATENCY_MEDIUM, SND_SPCM_LATENCY_REALTIME }
enum  _snd_spcm_xrun_type { SND_SPCM_XRUN_IGNORE = 0, SND_SPCM_XRUN_STOP }
enum  _snd_spcm_duplex_type { SND_SPCM_DUPLEX_LIBERAL = 0, SND_SPCM_DUPLEX_PEDANTIC }

Functions

int snd_spcm_init (snd_pcm_t *pcm, unsigned int rate, unsigned int channels, snd_pcm_format_t format, snd_pcm_subformat_t subformat, snd_spcm_latency_t latency, snd_pcm_access_t access, snd_spcm_xrun_type_t xrun_type)
int snd_spcm_init_duplex (snd_pcm_t *playback_pcm, snd_pcm_t *capture_pcm, unsigned int rate, unsigned int channels, snd_pcm_format_t format, snd_pcm_subformat_t subformat, snd_spcm_latency_t latency, snd_pcm_access_t access, snd_spcm_xrun_type_t xrun_type, snd_spcm_duplex_type_t duplex_type)
int snd_spcm_init_get_params (snd_pcm_t *pcm, unsigned int *rate, snd_pcm_uframes_t *buffer_size, snd_pcm_uframes_t *period_size)

Detailed Description

See the PCM (digital audio) interface page for more details.

Typedef Documentation

typedef enum _snd_spcm_duplex_type snd_spcm_duplex_type_t
 

Simple PCM duplex type

typedef enum _snd_spcm_latency snd_spcm_latency_t
 

Simple PCM latency type

typedef enum _snd_spcm_xrun_type snd_spcm_xrun_type_t
 

Simple PCM xrun type


Enumeration Type Documentation

enum _snd_spcm_duplex_type
 

Simple PCM duplex type

Enumeration values:
SND_SPCM_DUPLEX_LIBERAL  liberal duplex - the buffer and period sizes might not match
SND_SPCM_DUPLEX_PEDANTIC  pedantic duplex - the buffer and period sizes MUST match

enum _snd_spcm_latency
 

Simple PCM latency type

Enumeration values:
SND_SPCM_LATENCY_STANDARD  standard latency - for standard playback or capture (estimated latency in one direction 350ms)
SND_SPCM_LATENCY_MEDIUM  medium latency - software phones etc. (estimated latency in one direction maximally 25ms
SND_SPCM_LATENCY_REALTIME  realtime latency - realtime applications (effect processors etc.) (estimated latency in one direction 5ms and better)

enum _snd_spcm_xrun_type
 

Simple PCM xrun type

Enumeration values:
SND_SPCM_XRUN_IGNORE  driver / library will ignore all xruns, the stream runs forever
SND_SPCM_XRUN_STOP  driver / library stops the stream when an xrun occurs


Generated on Mon Feb 21 16:57:58 2005 for ALSA project - the C library reference by  doxygen 1.3.9.1