mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-02 09:01:48 -05:00
Renamed stop -> drop in API
This commit is contained in:
parent
ebae7ebeb2
commit
057f56de06
10 changed files with 21 additions and 24 deletions
|
|
@ -198,11 +198,11 @@ static int snd_pcm_hw_start(snd_pcm_t *pcm)
|
|||
return 0;
|
||||
}
|
||||
|
||||
static int snd_pcm_hw_stop(snd_pcm_t *pcm)
|
||||
static int snd_pcm_hw_drop(snd_pcm_t *pcm)
|
||||
{
|
||||
snd_pcm_hw_t *hw = pcm->private;
|
||||
int fd = hw->fd;
|
||||
if (ioctl(fd, SND_PCM_IOCTL_STOP) < 0)
|
||||
if (ioctl(fd, SND_PCM_IOCTL_DROP) < 0)
|
||||
return -errno;
|
||||
return 0;
|
||||
}
|
||||
|
|
@ -453,7 +453,7 @@ struct snd_pcm_fast_ops snd_pcm_hw_fast_ops = {
|
|||
delay: snd_pcm_hw_delay,
|
||||
prepare: snd_pcm_hw_prepare,
|
||||
start: snd_pcm_hw_start,
|
||||
stop: snd_pcm_hw_stop,
|
||||
drop: snd_pcm_hw_drop,
|
||||
drain: snd_pcm_hw_drain,
|
||||
pause: snd_pcm_hw_pause,
|
||||
rewind: snd_pcm_hw_rewind,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue