mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-10-31 22:25:35 -04:00
Added rewind to API in place of appl_ptr(). Moved aserver to a better place
This commit is contained in:
parent
b38376b91f
commit
fe92855cbb
17 changed files with 98 additions and 72 deletions
|
|
@ -31,7 +31,7 @@
|
|||
#define SND_PCM_IOCTL_CLOSE _IO ('A', 0xf9)
|
||||
|
||||
typedef struct {
|
||||
int result;
|
||||
long result;
|
||||
int cmd;
|
||||
union {
|
||||
snd_pcm_info_t info;
|
||||
|
|
@ -44,8 +44,7 @@ typedef struct {
|
|||
snd_pcm_channel_info_t channel_info;
|
||||
snd_pcm_channel_params_t channel_params;
|
||||
snd_pcm_channel_setup_t channel_setup;
|
||||
off_t appl_ptr;
|
||||
int hw_ptr;
|
||||
ssize_t rewind;
|
||||
int link;
|
||||
size_t mmap_forward;
|
||||
} u;
|
||||
|
|
|
|||
|
|
@ -150,8 +150,7 @@ int snd_pcm_flush(snd_pcm_t *handle);
|
|||
int snd_pcm_pause(snd_pcm_t *handle, int enable);
|
||||
int snd_pcm_state(snd_pcm_t *handle);
|
||||
int snd_pcm_delay(snd_pcm_t *handle, ssize_t *delayp);
|
||||
size_t snd_pcm_hw_ptr(snd_pcm_t *handle);
|
||||
ssize_t snd_pcm_appl_ptr(snd_pcm_t *handle, off_t offset);
|
||||
ssize_t snd_pcm_rewind(snd_pcm_t *handle, size_t frames);
|
||||
ssize_t snd_pcm_writei(snd_pcm_t *handle, const void *buffer, size_t size);
|
||||
ssize_t snd_pcm_readi(snd_pcm_t *handle, void *buffer, size_t size);
|
||||
ssize_t snd_pcm_writen(snd_pcm_t *handle, void **bufs, size_t size);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue