mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-10-29 05:40:25 -04:00
Removed snd_pcm_hwptr().
Added snd_pcm_hwdiff() and snd_pcm_forward(). Returned the behaviour for snd_pcm_mmap_begin().
This commit is contained in:
parent
fbd99fdec0
commit
2dab1dfbc3
17 changed files with 327 additions and 246 deletions
|
|
@ -50,7 +50,7 @@ typedef enum _snd_transport_type {
|
|||
#define SND_PCM_IOCTL_POLL_DESCRIPTOR _IO ('A', 0xf8)
|
||||
#define SND_PCM_IOCTL_HW_PTR_FD _IO ('A', 0xf9)
|
||||
#define SND_PCM_IOCTL_APPL_PTR_FD _IO ('A', 0xfa)
|
||||
#define SND_PCM_IOCTL_HWPTR _IO ('A', 0xfb)
|
||||
#define SND_PCM_IOCTL_FORWARD _IO ('A', 0xfb)
|
||||
|
||||
typedef struct {
|
||||
snd_pcm_uframes_t ptr;
|
||||
|
|
@ -74,9 +74,6 @@ typedef struct {
|
|||
snd_pcm_hw_params_t hw_params;
|
||||
snd_pcm_sw_params_t sw_params;
|
||||
snd_pcm_status_t status;
|
||||
struct {
|
||||
snd_pcm_uframes_t frames;
|
||||
} hwptr;
|
||||
struct {
|
||||
snd_pcm_uframes_t frames;
|
||||
} avail;
|
||||
|
|
@ -90,6 +87,9 @@ typedef struct {
|
|||
struct {
|
||||
snd_pcm_uframes_t frames;
|
||||
} rewind;
|
||||
struct {
|
||||
snd_pcm_uframes_t frames;
|
||||
} forward;
|
||||
struct {
|
||||
int fd;
|
||||
} link;
|
||||
|
|
|
|||
|
|
@ -410,11 +410,12 @@ int snd_pcm_drain(snd_pcm_t *pcm);
|
|||
int snd_pcm_pause(snd_pcm_t *pcm, int enable);
|
||||
snd_pcm_state_t snd_pcm_state(snd_pcm_t *pcm);
|
||||
int snd_pcm_hwsync(snd_pcm_t *pcm);
|
||||
int snd_pcm_hwptr(snd_pcm_t *pcm, snd_pcm_uframes_t *uframes);
|
||||
int snd_pcm_hwdiff(snd_pcm_t *pcm, snd_pcm_uframes_t *diff, snd_pcm_uframes_t *old_pos);
|
||||
int snd_pcm_delay(snd_pcm_t *pcm, snd_pcm_sframes_t *delayp);
|
||||
int snd_pcm_resume(snd_pcm_t *pcm);
|
||||
snd_pcm_sframes_t snd_pcm_avail_update(snd_pcm_t *pcm);
|
||||
snd_pcm_sframes_t snd_pcm_rewind(snd_pcm_t *pcm, snd_pcm_uframes_t frames);
|
||||
snd_pcm_sframes_t snd_pcm_forward(snd_pcm_t *pcm, snd_pcm_uframes_t frames);
|
||||
snd_pcm_sframes_t snd_pcm_writei(snd_pcm_t *pcm, const void *buffer, snd_pcm_uframes_t size);
|
||||
snd_pcm_sframes_t snd_pcm_readi(snd_pcm_t *pcm, void *buffer, snd_pcm_uframes_t size);
|
||||
snd_pcm_sframes_t snd_pcm_writen(snd_pcm_t *pcm, void **bufs, snd_pcm_uframes_t size);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue