diff options
author | Juergen Keil <jkeil@users.sourceforge.net> | 2001-06-22 10:45:03 +0000 |
---|---|---|
committer | Juergen Keil <jkeil@users.sourceforge.net> | 2001-06-22 10:45:03 +0000 |
commit | 5a2daf0021571ffdfb6e5a51bad1037d88737328 (patch) | |
tree | cca612440af58d4104a53f3a6a0565e5f98d4fbb | |
parent | ac229602682d43a7b4eb6fee1e184831419327f1 (diff) | |
download | xine-lib-5a2daf0021571ffdfb6e5a51bad1037d88737328.tar.gz xine-lib-5a2daf0021571ffdfb6e5a51bad1037d88737328.tar.bz2 |
Make sure the sun-style-ioctl audio plugin compiles on NetBSD
CVS patchset: 215
CVS date: 2001/06/22 10:45:03
-rw-r--r-- | src/audio_out/audio_sun_out.c | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/src/audio_out/audio_sun_out.c b/src/audio_out/audio_sun_out.c index 0d006bbc8..832ceb41f 100644 --- a/src/audio_out/audio_sun_out.c +++ b/src/audio_out/audio_sun_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_sun_out.c,v 1.1 2001/06/21 17:34:23 guenter Exp $ + * $Id: audio_sun_out.c,v 1.2 2001/06/22 10:45:03 jkeil Exp $ */ #ifdef HAVE_CONFIG_H @@ -43,6 +43,15 @@ #include "utils.h" +#ifndef AUDIO_CHANNELS_MONO +#define AUDIO_CHANNELS_MONO 1 +#define AUDIO_CHANNELS_STEREO 2 +#endif +#ifndef AUDIO_PRECISION_8 +#define AUDIO_PRECISION_8 8 +#define AUDIO_PRECISION_16 16 +#endif + #define GAP_TOLERANCE 5000 @@ -340,10 +349,12 @@ static int ao_get_property (ao_functions_t *this_gen, int property) { if (ioctl(this->audio_fd, AUDIO_GETINFO, &info) < 0) return 0; return info.play.gain; +#if !defined(__NetBSD__) /* audio_info.output_muted is missing on NetBSD */ case AO_PROP_MUTE_VOL: if (ioctl(this->audio_fd, AUDIO_GETINFO, &info) < 0) return 0; return info.output_muted; +#endif } return 0; @@ -367,11 +378,13 @@ static int ao_set_property (ao_functions_t *this_gen, int property, int value) { if (ioctl(this->audio_fd, AUDIO_SETINFO, &info) < 0) return ~value; return value; +#if !defined(__NetBSD__) /* audio_info.output_muted is missing on NetBSD */ case AO_PROP_MUTE_VOL: info.output_muted = value != 0; if (ioctl(this->audio_fd, AUDIO_SETINFO, &info) < 0) return ~value; return value; +#endif } return ~value; |