From f8f51e876ab6295264b4a13aba54e3298a2484ed Mon Sep 17 00:00:00 2001 From: Bastien Nocera Date: Sat, 13 Dec 2003 19:22:33 +0000 Subject: - 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 --- src/audio_out/audio_oss_out.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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 */ -- cgit v1.2.3