Functions | |
int | snd_pcm_mmap_begin (snd_pcm_t *pcm, const snd_pcm_channel_area_t **areas, snd_pcm_uframes_t *offset, snd_pcm_uframes_t *frames) |
Application request to access a portion of direct (mmap) area. | |
snd_pcm_sframes_t | snd_pcm_mmap_commit (snd_pcm_t *pcm, snd_pcm_uframes_t offset, snd_pcm_uframes_t frames) |
Application has completed the access to area requested with snd_pcm_mmap_begin. | |
snd_pcm_sframes_t | snd_pcm_mmap_writei (snd_pcm_t *pcm, const void *buffer, snd_pcm_uframes_t size) |
Write interleaved frames to a PCM using direct buffer (mmap). | |
snd_pcm_sframes_t | snd_pcm_mmap_readi (snd_pcm_t *pcm, void *buffer, snd_pcm_uframes_t size) |
Read interleaved frames from a PCM using direct buffer (mmap). | |
snd_pcm_sframes_t | snd_pcm_mmap_writen (snd_pcm_t *pcm, void **bufs, snd_pcm_uframes_t size) |
Write non interleaved frames to a PCM using direct buffer (mmap). | |
snd_pcm_sframes_t | snd_pcm_mmap_readn (snd_pcm_t *pcm, void **bufs, snd_pcm_uframes_t size) |
Read non interleaved frames to a PCM using direct buffer (mmap). |
|
Application request to access a portion of direct (mmap) area.
The function should be called before a sample-direct area can be accessed. The resulting size parameter is always less or equal to the input count of frames and can be zero, if no frames can be processed (the ring buffer is full). See the snd_pcm_mmap_commit() function to finish the frame processing in the direct areas.
|
|
Application has completed the access to area requested with snd_pcm_mmap_begin.
Example:
Look to the Sine-wave generator example for more details about the generate_sine function.
|
|
Read interleaved frames from a PCM using direct buffer (mmap).
If the non-blocking behaviour is selected, then routine doesn't wait at all. |
|
Read non interleaved frames to a PCM using direct buffer (mmap).
If the non-blocking behaviour is selected, then routine doesn't wait at all. |
|
Write interleaved frames to a PCM using direct buffer (mmap).
If the non-blocking behaviour is selected, then routine doesn't wait at all.
|
|
Write non interleaved frames to a PCM using direct buffer (mmap).
If the non-blocking behaviour is selected, then routine doesn't wait at all. |