MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / WriteBands

Function WriteBands

AudioEncode/aencode.cpp:919–929  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

917}
918
919void WriteBands(Encoder &enc) {
920 enc.m_bits.WriteBits(enc.m_currBlockBitPower, 4);
921 enc.m_bits.WriteBits(enc.m_currBlockBitValue, 16);
922
923 for (int i = 0; i < enc.m_numColumns; ++i) {
924 const uint32_t formatId = enc.m_pFormatIdPerColumn[i];
925 enc.m_bits.WriteBits(formatId, 5);
926 // int32_t currPos = ftell(enc.m_bits.m_outFile);
927 WriteBand_tbl[formatId](enc, i, formatId);
928 }
929}
930
931void shift_transform_levels(Encoder &enc) {
932 int32_t levelCount = enc.m_someVal - 1;

Callers 1

ProcessBlockFunction · 0.85

Calls 1

WriteBitsMethod · 0.80

Tested by

no test coverage detected