aboutsummaryrefslogtreecommitdiffstats
path: root/src/audio_format.h
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-09-07 19:20:01 +0200
committerMax Kellermann <max@duempel.org>2008-09-07 19:20:01 +0200
commitdc7c6bd14d0737f4c7c09c315a6806a901cf9976 (patch)
treee995f32ab6d5ecaa4b865f6795a2eab21d1f6548 /src/audio_format.h
parentf1dd9c209c3a1cf6826d3a38b60f638e0faeadab (diff)
downloadmpd-dc7c6bd14d0737f4c7c09c315a6806a901cf9976.tar.gz
mpd-dc7c6bd14d0737f4c7c09c315a6806a901cf9976.tar.xz
mpd-dc7c6bd14d0737f4c7c09c315a6806a901cf9976.zip
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.
Diffstat (limited to '')
-rw-r--r--src/audio_format.h2
1 files changed, 1 insertions, 1 deletions
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)