diff --git a/aplay/aplay.c b/aplay/aplay.c index dc1f403..9ec9912 100644 --- a/aplay/aplay.c +++ b/aplay/aplay.c @@ -781,8 +781,6 @@ static void set_params(void) if (mmap_flag) snd_pcm_munmap(handle, stream); #endif - snd_pcm_drain(handle); /* to be in right state */ - memset(¶ms, 0, sizeof(params)); params.format = format; params.start_mode = SND_PCM_START_DATA; @@ -1570,7 +1568,6 @@ static void playback(char *name) ssize_t dtawave; count = calc_count(); - snd_pcm_drain(handle); if (!name || !strcmp(name, "-")) { fd = 0; name = "stdin"; @@ -1619,7 +1616,6 @@ static void capture(char *name) { int fd; - snd_pcm_drain(handle); if (!name || !strcmp(name, "-")) { fd = 1; name = "stdout"; @@ -1736,7 +1732,6 @@ static void playbackv(char **names, unsigned int count) for (channel = 0; channel < channels; ++channel) fds[channel] = -1; - snd_pcm_drain(handle); if (count == 1) { size_t len = strlen(names[0]); char format[1024]; @@ -1791,7 +1786,6 @@ static void capturev(char **names, unsigned int count) for (channel = 0; channel < channels; ++channel) fds[channel] = -1; - snd_pcm_drain(handle); if (count == 1) { size_t len = strlen(names[0]); char format[1024];