]> git.alsa-project.org Git - alsa-utils.git/commitdiff
Small cleanups
authorJaroslav Kysela <perex@perex.cz>
Wed, 24 Oct 2001 14:41:10 +0000 (14:41 +0000)
committerJaroslav Kysela <perex@perex.cz>
Wed, 24 Oct 2001 14:41:10 +0000 (14:41 +0000)
aplay/aplay.c

index f6ce57cd295aecb78565addc24c8b665d19e2a46..b734235f0e57911c11de06da1d14caa330a9a7e5 100644 (file)
@@ -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);