Commit bea678a7 authored by Max Kellermann's avatar Max Kellermann

audio_format: convert reverse_endian to a "bool"

parent 1fb3fbb4
...@@ -75,7 +75,7 @@ struct audio_format { ...@@ -75,7 +75,7 @@ struct audio_format {
* nonzero, then samples are stored in the reverse host byte * nonzero, then samples are stored in the reverse host byte
* order. * order.
*/ */
uint8_t reverse_endian; bool reverse_endian;
}; };
/** /**
...@@ -94,7 +94,7 @@ static inline void audio_format_clear(struct audio_format *af) ...@@ -94,7 +94,7 @@ static inline void audio_format_clear(struct audio_format *af)
af->sample_rate = 0; af->sample_rate = 0;
af->format = SAMPLE_FORMAT_UNDEFINED; af->format = SAMPLE_FORMAT_UNDEFINED;
af->channels = 0; 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, ...@@ -108,7 +108,7 @@ static inline void audio_format_init(struct audio_format *af,
af->sample_rate = sample_rate; af->sample_rate = sample_rate;
af->format = (uint8_t)format; af->format = (uint8_t)format;
af->channels = channels; af->channels = channels;
af->reverse_endian = 0; af->reverse_endian = false;
} }
/** /**
......
...@@ -141,7 +141,7 @@ convert_filter_set(struct filter *_filter, ...@@ -141,7 +141,7 @@ convert_filter_set(struct filter *_filter,
assert(audio_format_valid(&filter->out_audio_format)); assert(audio_format_valid(&filter->out_audio_format));
assert(out_audio_format != NULL); assert(out_audio_format != NULL);
assert(audio_format_valid(out_audio_format)); assert(audio_format_valid(out_audio_format));
assert(filter->in_audio_format.reverse_endian == 0); assert(!filter->in_audio_format.reverse_endian);
filter->out_audio_format = *out_audio_format; filter->out_audio_format = *out_audio_format;
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment