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

Function ProcessBlock

AudioEncode/aencode.cpp:940–953  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

938}
939
940void ProcessBlock(Encoder &enc) {
941 transform_all(enc);
942
943 if (enc.m_bandWriteEnabled != 0) {
944 DetermineStep(enc);
945
946 WriteBands(enc);
947 }
948
949 shift_transform_levels(enc);
950
951 enc.m_blockSamplesRemaining += enc.m_samplesPerBlock;
952 enc.m_pCurrBlockData -= enc.m_samplesPerBlock;
953}
954
955void EncodeSample(Encoder &enc) {
956 int32_t sample = 0;

Callers 2

EncodeSampleFunction · 0.85
EncodeFlushFunction · 0.85

Calls 4

transform_allFunction · 0.85
DetermineStepFunction · 0.85
WriteBandsFunction · 0.85
shift_transform_levelsFunction · 0.85

Tested by

no test coverage detected