- added snd_pcm_mmap_begin_avail function; it is optimized for use after

snd_pcm_avail_update() call
- fixed broken hw_ptr management inside snd_pcm_plugin code
This commit is contained in:
Jaroslav Kysela 2001-12-09 18:41:23 +00:00
parent b63e44aab0
commit b7b11c3558
4 changed files with 187 additions and 69 deletions

View file

@ -790,6 +790,11 @@ 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);
int snd_pcm_mmap_begin_avail(snd_pcm_t *pcm,
const snd_pcm_channel_area_t **areas,
snd_pcm_uframes_t *offset,
snd_pcm_uframes_t *frames,
snd_pcm_uframes_t avail);
int snd_pcm_mmap_commit(snd_pcm_t *pcm, snd_pcm_uframes_t offset,
snd_pcm_uframes_t frames);
snd_pcm_sframes_t snd_pcm_mmap_writei(snd_pcm_t *pcm, const void *buffer, snd_pcm_uframes_t size);