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.
This commit is contained in:
Max Kellermann 2008-09-07 19:20:01 +02:00
parent f1dd9c209c
commit dc7c6bd14d

View File

@ -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)