aboutsummaryrefslogtreecommitdiffstats
path: root/src/audio_format.h
diff options
context:
space:
mode:
authorDavid Woodhouse <David.Woodhouse@intel.com>2009-07-19 16:42:19 +0100
committerDavid Woodhouse <David.Woodhouse@intel.com>2009-07-19 17:15:21 +0100
commit05693e2d5d760e818fb7382f9bd528026f16aa51 (patch)
treea2f9cbcafda5f17f253367225e4a1bc37d4859dc /src/audio_format.h
parent37754559b8f934ce8d554e0d9f976d4f6eb376d9 (diff)
downloadmpd-05693e2d5d760e818fb7382f9bd528026f16aa51.tar.gz
mpd-05693e2d5d760e818fb7382f9bd528026f16aa51.tar.xz
mpd-05693e2d5d760e818fb7382f9bd528026f16aa51.zip
Add reverse_endian field to struct audio_format and handle conversion
Diffstat (limited to 'src/audio_format.h')
-rw-r--r--src/audio_format.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/audio_format.h b/src/audio_format.h
index e325c1b38..54514ff93 100644
--- a/src/audio_format.h
+++ b/src/audio_format.h
@@ -27,6 +27,7 @@ struct audio_format {
uint32_t sample_rate;
uint8_t bits;
uint8_t channels;
+ uint8_t reverse_endian;
};
static inline void audio_format_clear(struct audio_format *af)
@@ -34,6 +35,7 @@ static inline void audio_format_clear(struct audio_format *af)
af->sample_rate = 0;
af->bits = 0;
af->channels = 0;
+ af->reverse_endian = 0;
}
static inline void audio_format_init(struct audio_format *af,
@@ -97,7 +99,8 @@ static inline bool audio_format_equals(const struct audio_format *a,
{
return a->sample_rate == b->sample_rate &&
a->bits == b->bits &&
- a->channels == b->channels;
+ a->channels == b->channels &&
+ a->reverse_endian == b->reverse_endian;
}
/**