Files
qemu-qemu/ui
Marc-André Lureau eebba32fe5 audio: replace int endianness with bool big_endian in audsettings
The endianness field used an int to represent a boolean concept, with
0 meaning little-endian and 1 meaning big-endian. This required runtime
validation to reject invalid values and made the code less readable.

Replace with a bool big_endian field that is self-documenting and
type-safe. The compiler now enforces valid values, eliminating the
need for the validation check in audio_validate_settings().

Reviewed-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Mark Cave-Ayland <mark.caveayland@nutanix.com>
Reviewed-by: Akihiko Odaki <odaki@rsg.ci.i.u-tokyo.ac.jp>
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
2026-02-23 14:38:22 +01:00
..
2026-02-23 14:28:57 +01:00
2023-06-27 17:08:56 +02:00
2024-09-10 13:22:47 +02:00
2024-12-20 17:44:56 +01:00
2023-08-31 19:47:43 +02:00
2024-09-13 20:12:16 +02:00
2022-03-14 15:16:16 +04:00
2022-11-08 10:23:06 +01:00
2022-11-08 10:23:06 +01:00
2023-08-31 19:47:43 +02:00
2023-06-05 20:48:34 +02:00
2025-10-30 22:56:51 +04:00