mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2026-02-28 01:40:08 -05:00
implemented snd_pcm_rewindable() and snd_pcm_forwardable(), removed can_rewind and can_forward
This commit is contained in:
parent
058dde8b7d
commit
c88672d86f
17 changed files with 212 additions and 55 deletions
|
|
@ -508,6 +508,11 @@ static int snd_pcm_shm_pause(snd_pcm_t *pcm, int enable)
|
|||
return snd_pcm_shm_action(pcm);
|
||||
}
|
||||
|
||||
static snd_pcm_sframes_t snd_pcm_shm_rewindable(snd_pcm_t *pcm ATTRIBUTE_UNUSED)
|
||||
{
|
||||
return 0; /* FIX ME */
|
||||
}
|
||||
|
||||
static snd_pcm_sframes_t snd_pcm_shm_rewind(snd_pcm_t *pcm, snd_pcm_uframes_t frames)
|
||||
{
|
||||
snd_pcm_shm_t *shm = pcm->private_data;
|
||||
|
|
@ -517,6 +522,11 @@ static snd_pcm_sframes_t snd_pcm_shm_rewind(snd_pcm_t *pcm, snd_pcm_uframes_t fr
|
|||
return snd_pcm_shm_action(pcm);
|
||||
}
|
||||
|
||||
static snd_pcm_sframes_t snd_pcm_shm_forwardable(snd_pcm_t *pcm ATTRIBUTE_UNUSED)
|
||||
{
|
||||
return 0; /* FIX ME */
|
||||
}
|
||||
|
||||
static snd_pcm_sframes_t snd_pcm_shm_forward(snd_pcm_t *pcm, snd_pcm_uframes_t frames)
|
||||
{
|
||||
snd_pcm_shm_t *shm = pcm->private_data;
|
||||
|
|
@ -607,7 +617,9 @@ static snd_pcm_fast_ops_t snd_pcm_shm_fast_ops = {
|
|||
.drop = snd_pcm_shm_drop,
|
||||
.drain = snd_pcm_shm_drain,
|
||||
.pause = snd_pcm_shm_pause,
|
||||
.rewindable = snd_pcm_shm_rewindable,
|
||||
.rewind = snd_pcm_shm_rewind,
|
||||
.forwardable = snd_pcm_shm_forwardable,
|
||||
.forward = snd_pcm_shm_forward,
|
||||
.resume = snd_pcm_shm_resume,
|
||||
.writei = snd_pcm_mmap_writei,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue