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

Method Flush

AudioEncode/aencode.cpp:46–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44 }
45
46 void Flush() {
47 while (m_bitCount >= 8) {
48 uint8_t v = m_bitData & 0xFF;
49 putc(v, m_outFile);
50
51 m_bitData >>= 8;
52 m_bitCount -= 8;
53 }
54
55 if (m_bitCount > 0) {
56 uint8_t v = m_bitData & 0xFF;
57 putc(v, m_outFile);
58 m_bitCount = 0;
59 m_bitData = 0;
60 }
61 }
62};
63
64struct Encoder {

Callers 1

AudioEncodeFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected