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:
parent
f1dd9c209c
commit
dc7c6bd14d
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user