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

Function DestroyEncoder

AudioEncode/aencode.cpp:695–714  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

693}
694
695void DestroyEncoder(Encoder &enc) {
696 if (enc.m_levelSlots != NULL) {
697 for (int i = 0; i <= enc.m_levels; ++i) {
698 if (enc.m_levelSlots[i] != 0) {
699 int extraSamples = 0;
700 if (enc.m_levels != i) {
701 extraSamples = (enc.m_someVal - 1) << i;
702 }
703
704 free(enc.m_levelSlots[i] - extraSamples);
705 }
706 }
707
708 free(enc.m_levelSlots);
709 }
710
711 if (enc.m_pFormatIdPerColumn != NULL) {
712 free(enc.m_pFormatIdPerColumn);
713 }
714}
715
716void transform_subband(Encoder &enc, float *pD0, float *pD1, int32_t subBandCount, int32_t sampleCount) {
717 if (sampleCount <= 0)

Callers 1

AudioEncodeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected