aboutsummaryrefslogtreecommitdiffstats
path: root/src/output/oss_plugin.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2010-05-13 14:32:06 +0200
committerMax Kellermann <max@duempel.org>2010-05-13 14:34:22 +0200
commit5fa1c703dee628ff24f4a93344c4d6074070e449 (patch)
tree780d18687c8993d0a236f8804af4dcfada2b5009 /src/output/oss_plugin.c
parentbead892e21dd35bb1400797de0dcd5a17f6977e8 (diff)
downloadmpd-5fa1c703dee628ff24f4a93344c4d6074070e449.tar.gz
mpd-5fa1c703dee628ff24f4a93344c4d6074070e449.tar.xz
mpd-5fa1c703dee628ff24f4a93344c4d6074070e449.zip
output/oss: use the *_NE macros
Removed the macro AFMT_S16_MPD.
Diffstat (limited to '')
-rw-r--r--src/output/oss_plugin.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/output/oss_plugin.c b/src/output/oss_plugin.c
index ab3a60643..4c27d31c1 100644
--- a/src/output/oss_plugin.c
+++ b/src/output/oss_plugin.c
@@ -40,12 +40,6 @@
# include <sys/soundcard.h>
#endif /* !(defined(__OpenBSD__) || defined(__NetBSD__) */
-#if G_BYTE_ORDER == G_BIG_ENDIAN
-# define AFMT_S16_MPD AFMT_S16_BE
-#else
-# define AFMT_S16_MPD AFMT_S16_LE
-#endif
-
struct oss_data {
int fd;
const char *device;
@@ -496,13 +490,13 @@ oss_setup(struct oss_data *od, GError **error)
break;
case SAMPLE_FORMAT_S16:
- tmp = AFMT_S16_MPD;
+ tmp = AFMT_S16_NE;
break;
default:
/* not supported by OSS - fall back to 16 bit */
od->audio_format.format = SAMPLE_FORMAT_S16;
- tmp = AFMT_S16_MPD;
+ tmp = AFMT_S16_NE;
break;
}