audio_format: convert reverse_endian to a "bool"
This commit is contained in:
parent
1fb3fbb4de
commit
bea678a7cd
@ -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)
|
|||||||
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,
|
|||||||
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,
|
|||||||
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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user