mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-10-31 22:25:35 -04:00
Added mmaped avail_min
This commit is contained in:
parent
d5c49aaa8e
commit
8d3919707e
11 changed files with 74 additions and 0 deletions
|
|
@ -30,6 +30,7 @@
|
|||
#define SND_PCM_IOCTL_CLOSE _IO ('A', 0xfa)
|
||||
#define SND_PCM_IOCTL_MMAP_INFO _IO ('A', 0xfb)
|
||||
#define SND_PCM_IOCTL_POLL_DESCRIPTOR _IO ('A', 0xfc)
|
||||
#define SND_PCM_IOCTL_SET_AVAIL_MIN _IO ('A', 0xfd)
|
||||
|
||||
typedef struct {
|
||||
long result;
|
||||
|
|
@ -65,6 +66,9 @@ typedef struct {
|
|||
struct {
|
||||
ssize_t frames;
|
||||
} mmap_forward;
|
||||
struct {
|
||||
ssize_t frames;
|
||||
} set_avail_min;
|
||||
} u;
|
||||
char data[0];
|
||||
} snd_pcm_shm_ctrl_t;
|
||||
|
|
|
|||
|
|
@ -169,6 +169,7 @@ int snd_pcm_unlink(snd_pcm_t *pcm);
|
|||
int snd_pcm_channels_mask(snd_pcm_t *pcm, bitset_t *cmask);
|
||||
int snd_pcm_wait(snd_pcm_t *pcm, int timeout);
|
||||
ssize_t snd_pcm_avail_update(snd_pcm_t *pcm);
|
||||
int snd_pcm_set_avail_min(snd_pcm_t *pcm, size_t size);
|
||||
|
||||
|
||||
/* mmap */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue