MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / ~Voice

Method ~Voice

source/frontend/StarVoice.cpp:153–169  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

151}
152
153Voice::~Voice() {
154 m_stopThread = true;
155
156 {
157 MutexLocker locker(m_threadMutex);
158 m_threadCond.broadcast();
159 }
160
161 m_thread.finish();
162
163 if (m_nextSaveTime)
164 save();
165
166 closeDevice();
167
168 s_singleton = nullptr;
169}
170
171void Voice::init() {
172 resetEncoder();

Callers

nothing calls this directly

Calls 3

saveFunction · 0.85
broadcastMethod · 0.45
finishMethod · 0.45

Tested by

no test coverage detected