mackron / dr_libs

Audio decoding libraries for C/C++, each in a single source file.
Other
1.24k stars 205 forks source link

Draft FLAC (dev) struct size ordering (tiny size optimization) #122

Closed kcgen closed 4 years ago

kcgen commented 4 years ago

This has existed for a while, but am just posting it now. Absolute non-issue, but nice to have if you're updating the code.

2020-03-28_21-47

mackron commented 4 years ago

Setting this one to wont fix. I like the order of members in these structures to map with the structure of the actual data and with the definition of the block in the spec. The drflac_metadata structure doesn't need to be super tightly packed - it's not like anybody is going to packing many drflac_metadata instantiations where it'll matter.