|
ALSA project - the C library reference
|
Files | |
| file | /home/abuild/rpmbuild/BUILD/alsa-1.2.15.3-build/alsa-lib-1.2.15.3/src/pcm/pcm_simple.c |
| PCM Simple Interface. | |
Enumerations | |
| enum | snd_spcm_latency_t { SND_SPCM_LATENCY_STANDARD = 0 , SND_SPCM_LATENCY_MEDIUM , SND_SPCM_LATENCY_REALTIME } |
| enum | snd_spcm_xrun_type_t { SND_SPCM_XRUN_IGNORE = 0 , SND_SPCM_XRUN_STOP } |
| enum | snd_spcm_duplex_type_t { 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) |
| Set up a simple PCM. | |
| 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) |
| Initialize simple PCMs in the duplex mode. | |
| 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) |
| Get the set up of simple PCM. | |
See the PCM (digital audio) interface page for more details.
| enum snd_spcm_latency_t |
Simple PCM latency type
| enum snd_spcm_xrun_type_t |
| 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 ) |
Set up a simple PCM.
| pcm | PCM handle |
| rate | Sample rate |
| channels | Number of channels |
| format | PCM format |
| subformat | PCM subformat |
| latency | Latency type |
| access | PCM acceess type |
| xrun_type | 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 ) |
Initialize simple PCMs in the duplex mode.
| playback_pcm | PCM handle for playback |
| capture_pcm | PCM handle for capture |
| rate | Sample rate |
| channels | Number of channels |
| format | PCM format |
| subformat | PCM subformat |
| latency | Latency type |
| access | PCM acceess type |
| xrun_type | XRUN type |
| duplex_type | Duplex mode |
| 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 ) |
Get the set up of simple PCM.
| pcm | PCM handle |
| rate | Pointer to store the current sample rate |
| buffer_size | Pointer to store the current buffer size |
| period_size | Pointer to store the current period size |