Removed snd_pcm_drain done before setup

This commit is contained in:
Abramo Bagnara 2000-10-05 11:25:01 +00:00
parent fe0398a0f6
commit 5e4997b682

View file

@ -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(&params, 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];