From dc7c6bd14d0737f4c7c09c315a6806a901cf9976 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sun, 7 Sep 2008 19:20:01 +0200 Subject: pack the struct audio_format Due to clumsy layout, the audio_format struct took 12 bytes. Move the "channels" to the end, so it can be merged into the same 32 bit slot as "bits", which reduces the struct size to 8 bytes. --- src/audio_format.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/audio_format.h') diff --git a/src/audio_format.h b/src/audio_format.h index fa892b846..b4b40c69f 100644 --- a/src/audio_format.h +++ b/src/audio_format.h @@ -22,9 +22,9 @@ #include "mpd_types.h" struct audio_format { - mpd_sint8 channels; mpd_uint32 sampleRate; mpd_sint8 bits; + mpd_sint8 channels; }; static inline double audio_format_time_to_size(const struct audio_format *af) -- cgit v1.2.3