diff options
author | Max Kellermann <max@duempel.org> | 2012-03-21 19:25:52 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2012-03-21 19:31:04 +0100 |
commit | 8c5ebdff360021a25b43418d3cd60ea975f5e245 (patch) | |
tree | 5780d19719f2493741fd11777bc39baf5361935b /src/audio_format.c | |
parent | 1c84f324a13bcc3d7fbd84f8d59398b1c801247a (diff) | |
download | mpd-8c5ebdff360021a25b43418d3cd60ea975f5e245.tar.gz mpd-8c5ebdff360021a25b43418d3cd60ea975f5e245.tar.xz mpd-8c5ebdff360021a25b43418d3cd60ea975f5e245.zip |
audio_format: remove the reverse_endian attribute
Eliminate support for reverse endian samples from the MPD core. This
moves a lot of complexity to the plugins that really need it (only
ALSA and CDIO currently).
Diffstat (limited to 'src/audio_format.c')
-rw-r--r-- | src/audio_format.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/src/audio_format.c b/src/audio_format.c index 06dee8e0f..5a12a299c 100644 --- a/src/audio_format.c +++ b/src/audio_format.c @@ -22,12 +22,6 @@ #include <assert.h> #include <stdio.h> -#if G_BYTE_ORDER == G_BIG_ENDIAN -#define REVERSE_ENDIAN_SUFFIX "_le" -#else -#define REVERSE_ENDIAN_SUFFIX "_be" -#endif - void audio_format_mask_apply(struct audio_format *af, const struct audio_format *mask) @@ -100,9 +94,8 @@ audio_format_to_string(const struct audio_format *af, assert(af != NULL); assert(s != NULL); - snprintf(s->buffer, sizeof(s->buffer), "%u:%s%s:%u", + snprintf(s->buffer, sizeof(s->buffer), "%u:%s:%u", af->sample_rate, sample_format_to_string(af->format), - af->reverse_endian ? REVERSE_ENDIAN_SUFFIX : "", af->channels); return s->buffer; |