diff options
author | Bastien Nocera <hadess@users.sourceforge.net> | 2003-12-13 19:22:33 +0000 |
---|---|---|
committer | Bastien Nocera <hadess@users.sourceforge.net> | 2003-12-13 19:22:33 +0000 |
commit | f8f51e876ab6295264b4a13aba54e3298a2484ed (patch) | |
tree | 2ebf817e2713a8724fa9a21d51a2dc4aec8368e8 /src | |
parent | 54b27d26aaa2cb780cb60feca46d524c75ee0d4c (diff) | |
download | xine-lib-f8f51e876ab6295264b4a13aba54e3298a2484ed.tar.gz xine-lib-f8f51e876ab6295264b4a13aba54e3298a2484ed.tar.bz2 |
- check that setting the "bits per sample" was what we asked for even if the ioctl works (fixes playback of 8 bits sounds on i810 soundcards)
CVS patchset: 5904
CVS date: 2003/12/13 19:22:33
Diffstat (limited to 'src')
-rw-r--r-- | src/audio_out/audio_oss_out.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/audio_out/audio_oss_out.c b/src/audio_out/audio_oss_out.c index cce2a94d7..b8c6e7697 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.96 2003/12/07 00:25:52 hadess Exp $ + * $Id: audio_oss_out.c,v 1.97 2003/12/13 19:22:33 hadess Exp $ * * 20-8-2001 First implementation of Audio sync and Audio driver separation. * Copyright (C) 2001 James Courtier-Dutton James@superbug.demon.co.uk @@ -849,7 +849,7 @@ static ao_driver_t *open_plugin (audio_driver_class_t *class_gen, const void *da this->capabilities = 0; bits = 8; - if( ioctl(audio_fd, SNDCTL_DSP_SAMPLESIZE,&bits) != -1 ) + if( ioctl(audio_fd, SNDCTL_DSP_SAMPLESIZE,&bits) != -1 && bits == 8) this->capabilities |= AO_CAP_8BITS; /* switch back to 16bits, because some soundcards otherwise do not report all their capabilities */ |