mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-10-29 05:40:25 -04:00
Corrected pause callback
This commit is contained in:
parent
3b6638e8ce
commit
e1b91846c2
1 changed files with 6 additions and 3 deletions
|
|
@ -161,9 +161,12 @@ static int snd_pcm_null_pause(snd_pcm_t *pcm, int enable)
|
|||
if (enable) {
|
||||
if (null->state != SND_PCM_STATE_RUNNING)
|
||||
return -EBADFD;
|
||||
} else if (null->state != SND_PCM_STATE_PAUSED)
|
||||
return -EBADFD;
|
||||
null->state = SND_PCM_STATE_PAUSED;
|
||||
null->state = SND_PCM_STATE_PAUSED;
|
||||
} else {
|
||||
if (null->state != SND_PCM_STATE_PAUSED)
|
||||
return -EBADFD;
|
||||
null->state = SND_PCM_STATE_RUNNING;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue