mirror of
https://github.com/alsa-project/alsa-utils
synced 2024-11-09 17:25:42 +01:00
Small cleanups
This commit is contained in:
parent
505135dffe
commit
b009e6956c
1 changed files with 1 additions and 5 deletions
|
@ -470,10 +470,6 @@ int main(int argc, char *argv[])
|
|||
}
|
||||
|
||||
if (mmap_flag) {
|
||||
snd_pcm_sframes_t snd_pcm_mmap_writei(snd_pcm_t *pcm, const void *buffer, snd_pcm_uframes_t size);
|
||||
snd_pcm_sframes_t snd_pcm_mmap_readi(snd_pcm_t *pcm, void *buffer, snd_pcm_uframes_t size);
|
||||
snd_pcm_sframes_t snd_pcm_mmap_writen(snd_pcm_t *pcm, void **bufs, snd_pcm_uframes_t size);
|
||||
snd_pcm_sframes_t snd_pcm_mmap_readn(snd_pcm_t *pcm, void **bufs, snd_pcm_uframes_t size);
|
||||
writei_func = snd_pcm_mmap_writei;
|
||||
readi_func = snd_pcm_mmap_readi;
|
||||
writen_func = snd_pcm_mmap_writen;
|
||||
|
@ -876,7 +872,7 @@ static void suspend(void)
|
|||
if (!quiet_mode)
|
||||
fprintf(stderr, "Suspended. Trying resume. "); fflush(stderr);
|
||||
while ((res = snd_pcm_resume(handle)) == -EAGAIN)
|
||||
sleep(1); /* wait until suspend flag is not released */
|
||||
sleep(1); /* wait until suspend flag is released */
|
||||
if (res < 0) {
|
||||
if (!quiet_mode)
|
||||
fprintf(stderr, "Failed. Restarting stream. "); fflush(stderr);
|
||||
|
|
Loading…
Reference in a new issue