MusicChunk: reorder attributes to reduce padding

This commit is contained in:
Max Kellermann
2017-12-30 17:52:07 +01:00
parent a06bf388d9
commit 78c73fb9e7

View File

@@ -52,6 +52,12 @@ struct MusicChunkInfo {
*/ */
MusicChunk *other = nullptr; MusicChunk *other = nullptr;
/**
* An optional tag associated with this chunk (and the
* following chunks); appears at song boundaries.
*/
std::unique_ptr<Tag> tag;
/** /**
* The current mix ratio for cross-fading: 1.0 means play 100% * The current mix ratio for cross-fading: 1.0 means play 100%
* of this chunk, 0.0 means play 100% of the "other" chunk. * of this chunk, 0.0 means play 100% of the "other" chunk.
@@ -67,12 +73,6 @@ struct MusicChunkInfo {
/** the time stamp within the song */ /** the time stamp within the song */
SignedSongTime time; SignedSongTime time;
/**
* An optional tag associated with this chunk (and the
* following chunks); appears at song boundaries.
*/
std::unique_ptr<Tag> tag;
/** /**
* Replay gain information associated with this chunk. * Replay gain information associated with this chunk.
* Only valid if the serial is not 0. * Only valid if the serial is not 0.