]> git.alsa-project.org Git - alsa-oss.git/commitdiff
Drain playback for OSS emulation
authorJaroslav Kysela <perex@perex.cz>
Wed, 26 Jun 2002 20:43:46 +0000 (20:43 +0000)
committerJaroslav Kysela <perex@perex.cz>
Wed, 26 Jun 2002 20:43:46 +0000 (20:43 +0000)
alsa-oss.c

index a12f9c3bf1d2dd666d7fd6b0681d9f188fd3030b..3237f34b6facee1c7ea9e30aa212a16a8ac5f12d 100644 (file)
@@ -356,6 +356,8 @@ static int oss_dsp_close(int fd)
                oss_dsp_stream_t *str = &dsp->streams[k];
                if (!str->pcm)
                        continue;
+               if (k == SND_PCM_STREAM_PLAYBACK)
+                       snd_pcm_drain(str->pcm);
                err = snd_pcm_close(str->pcm);
                if (err < 0)
                        result = err;