diff options
author | Philipp Hahn <pmhahn@users.sourceforge.net> | 2002-07-03 07:44:04 +0000 |
---|---|---|
committer | Philipp Hahn <pmhahn@users.sourceforge.net> | 2002-07-03 07:44:04 +0000 |
commit | d2cb2e8ca7d9858467d5ea69367c1012c2a82c65 (patch) | |
tree | 790e240a861990358a098e3bdd7cf01d89861c93 | |
parent | 3997d5ebf45adf816c4d93cb2a77116cdaec7060 (diff) | |
download | xine-lib-d2cb2e8ca7d9858467d5ea69367c1012c2a82c65.tar.gz xine-lib-d2cb2e8ca7d9858467d5ea69367c1012c2a82c65.tar.bz2 |
Only test 8bit, do not set it
CVS patchset: 2201
CVS date: 2002/07/03 07:44:04
-rw-r--r-- | src/audio_out/audio_alsa_out.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/audio_out/audio_alsa_out.c b/src/audio_out/audio_alsa_out.c index 676fb1846..9e7bc536a 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 <James@superbug.demon.co.uk> * * - * $Id: audio_alsa_out.c,v 1.70 2002/07/03 07:38:20 pmhahn Exp $ + * $Id: audio_alsa_out.c,v 1.71 2002/07/03 07:44:04 pmhahn Exp $ */ #ifdef HAVE_CONFIG_H @@ -953,10 +953,11 @@ ao_driver_t *init_audio_out_plugin (config_values_t *config) { this->capabilities = 0; - if ( !(snd_pcm_hw_params_set_format(this->audio_fd, params, SND_PCM_FORMAT_U8))) - this->capabilities |= AO_CAP_8BITS; - printf ("audio_alsa_out : supported modes are "); + if (!(snd_pcm_hw_params_test_format(this->audio_fd, params, SND_PCM_FORMAT_U8))) { + this->capabilities |= AO_CAP_8BITS; + printf ("8bit "); + } if (!(snd_pcm_hw_params_test_channels(this->audio_fd, params, 1))) { this->capabilities |= AO_CAP_MODE_MONO; printf ("mono "); |