From bc0605c9bf7dd1a7245ea64c5ff3e4919522635f Mon Sep 17 00:00:00 2001 From: James Courtier-Dutton Date: Sat, 12 Oct 2002 10:36:50 +0000 Subject: Make flush of audio work properly. CVS patchset: 2813 CVS date: 2002/10/12 10:36:50 --- src/audio_out/audio_alsa_out.c | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) (limited to 'src/audio_out') diff --git a/src/audio_out/audio_alsa_out.c b/src/audio_out/audio_alsa_out.c index f62b8f714..3a93f4a39 100644 --- a/src/audio_out/audio_alsa_out.c +++ b/src/audio_out/audio_alsa_out.c @@ -26,7 +26,7 @@ * (c) 2001 James Courtier-Dutton * * - * $Id: audio_alsa_out.c,v 1.80 2002/10/10 13:12:17 jcdutton Exp $ + * $Id: audio_alsa_out.c,v 1.81 2002/10/12 10:36:50 jcdutton Exp $ */ #ifdef HAVE_CONFIG_H @@ -785,15 +785,8 @@ static int ao_alsa_ctrl(xine_ao_driver_t *this_gen, int cmd, ...) { case AO_CTRL_FLUSH_BUFFERS: if (this->audio_fd > 0) { - printf("audio_alsa_out: flush buffer\n"); - if ((result=snd_pcm_reset(this->audio_fd)) < 0) { - printf("audio_alsa_out: Reset call failed err=%d\n",result); - } - if ((result=snd_pcm_drain(this->audio_fd)) < 0) { - printf("audio_alsa_out: Drain call failed err=%d\n",result); - } - if ((result=snd_pcm_prepare(this->audio_fd)) < 0) { - printf("audio_alsa_out: Prepare call failed err=%d\n",result); + if ((result=snd_pcm_drop(this->audio_fd)) < 0) { + printf("audio_alsa_out: Drop call failed err=%d\n",result); } } break; -- cgit v1.2.3