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.h | |
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 '')
-rw-r--r-- | src/audio_format.h | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/src/audio_format.h b/src/audio_format.h index 293dee1c1..fc4b85880 100644 --- a/src/audio_format.h +++ b/src/audio_format.h @@ -88,13 +88,6 @@ struct audio_format { * fully supported currently. */ uint8_t channels; - - /** - * If zero, then samples are stored in host byte order. If - * nonzero, then samples are stored in the reverse host byte - * order. - */ - bool reverse_endian; }; /** @@ -113,7 +106,6 @@ static inline void audio_format_clear(struct audio_format *af) af->sample_rate = 0; af->format = SAMPLE_FORMAT_UNDEFINED; af->channels = 0; - af->reverse_endian = false; } /** @@ -127,7 +119,6 @@ static inline void audio_format_init(struct audio_format *af, af->sample_rate = sample_rate; af->format = (uint8_t)format; af->channels = channels; - af->reverse_endian = false; } /** @@ -239,8 +230,7 @@ static inline bool audio_format_equals(const struct audio_format *a, { return a->sample_rate == b->sample_rate && a->format == b->format && - a->channels == b->channels && - a->reverse_endian == b->reverse_endian; + a->channels == b->channels; } void |