diff options
author | Thibaut Mattern <tmattern@users.sourceforge.net> | 2002-06-13 18:36:26 +0000 |
---|---|---|
committer | Thibaut Mattern <tmattern@users.sourceforge.net> | 2002-06-13 18:36:26 +0000 |
commit | 0e3d83c1b94478d6a104aa6c6ab4975ec7a44d6b (patch) | |
tree | c88536aff7f541b27e9240f1302e50bcb74e768d | |
parent | 697feb0e59507d4bd4745e792fefb75e693e05ae (diff) | |
download | xine-lib-0e3d83c1b94478d6a104aa6c6ab4975ec7a44d6b.tar.gz xine-lib-0e3d83c1b94478d6a104aa6c6ab4975ec7a44d6b.tar.bz2 |
Don't close/open the device on pause (only reset).
CVS patchset: 2071
CVS date: 2002/06/13 18:36:26
-rw-r--r-- | src/audio_out/audio_oss_out.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/audio_out/audio_oss_out.c b/src/audio_out/audio_oss_out.c index ff5a5fc1e..dedff1aa4 100644 --- a/src/audio_out/audio_oss_out.c +++ b/src/audio_out/audio_oss_out.c @@ -17,7 +17,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * - * $Id: audio_oss_out.c,v 1.68 2002/06/12 12:22:27 f1rmb Exp $ + * $Id: audio_oss_out.c,v 1.69 2002/06/13 18:36:26 tmattern Exp $ * * 20-8-2001 First implementation of Audio sync and Audio driver separation. * Copyright (C) 2001 James Courtier-Dutton James@superbug.demon.co.uk @@ -590,8 +590,10 @@ static int ao_oss_ctrl(ao_driver_t *this_gen, int cmd, ...) { case AO_CTRL_PLAY_PAUSE: printf ("audio_oss_out: AO_CTRL_PLAY_PAUSE\n"); ioctl(this->audio_fd, SNDCTL_DSP_RESET, NULL); - ao_oss_close(this_gen); - ao_oss_open(this_gen, this->bits_per_sample, this->input_sample_rate, this->mode); + /* Uncomment the following lines if RESET causes problems + * ao_oss_close(this_gen); + * ao_oss_open(this_gen, this->bits_per_sample, this->input_sample_rate, this->mode); + */ break; case AO_CTRL_PLAY_RESUME: |