mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-01 22:58:49 -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
|
|
@ -204,15 +204,12 @@ int snd_pcm_pause(snd_pcm_t *pcm, int enable)
|
|||
}
|
||||
|
||||
|
||||
ssize_t snd_pcm_appl_ptr(snd_pcm_t *pcm, off_t offset)
|
||||
ssize_t snd_pcm_rewind(snd_pcm_t *pcm, size_t frames)
|
||||
{
|
||||
assert(pcm);
|
||||
assert(pcm->valid_setup);
|
||||
if (pcm->mmap_control) {
|
||||
if (offset == 0)
|
||||
return pcm->mmap_control->appl_ptr;
|
||||
}
|
||||
return pcm->fast_ops->appl_ptr(pcm->fast_op_arg, offset);
|
||||
assert(frames > 0);
|
||||
return pcm->fast_ops->rewind(pcm->fast_op_arg, frames);
|
||||
}
|
||||
|
||||
ssize_t snd_pcm_writei(snd_pcm_t *pcm, const void *buffer, size_t size)
|
||||
|
|
@ -659,11 +656,6 @@ ssize_t snd_pcm_mmap_forward(snd_pcm_t *pcm, size_t size)
|
|||
return pcm->fast_ops->mmap_forward(pcm->fast_op_arg, size);
|
||||
}
|
||||
|
||||
size_t snd_pcm_hw_ptr(snd_pcm_t *pcm)
|
||||
{
|
||||
return pcm->mmap_status->hw_ptr;
|
||||
}
|
||||
|
||||
int snd_pcm_area_silence(snd_pcm_channel_area_t *dst_area, size_t dst_offset,
|
||||
size_t samples, int format)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue