From bea678a7cda2400d1326f77d58d2083b3dc2162f Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Mon, 10 Oct 2011 09:14:01 +0200 Subject: audio_format: convert reverse_endian to a "bool" --- src/audio_format.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/audio_format.h') diff --git a/src/audio_format.h b/src/audio_format.h index 43bfe2d6..71bd369e 100644 --- a/src/audio_format.h +++ b/src/audio_format.h @@ -75,7 +75,7 @@ struct audio_format { * nonzero, then samples are stored in the reverse host byte * order. */ - uint8_t reverse_endian; + bool reverse_endian; }; /** @@ -94,7 +94,7 @@ 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 = 0; + af->reverse_endian = false; } /** @@ -108,7 +108,7 @@ 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 = 0; + af->reverse_endian = false; } /** -- cgit v1.2.3