MCPcopy Create free account
hub / github.com/LabSound/LabSound / uninitialize

Method uninitialize

src/core/AudioContext.cpp:245–264  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

243}
244
245void AudioContext::uninitialize()
246{
247 LOG_TRACE("AudioContext::uninitialize()");
248
249 if (!m_isInitialized)
250 return;
251
252 // for the case where an OfflineAudioDestinationNode needs to update the graph:
253 updateAutomaticPullNodes();
254
255 // This stops the audio thread and all audio rendering.
256 device_callback->stop();
257
258 // Don't allow the context to initialize a second time after it's already been explicitly uninitialized.
259 m_isAudioThreadFinished = true;
260
261 updateAutomaticPullNodes(); // added for the case where an NullDeviceNode needs to update the graph
262
263 m_isInitialized = false;
264}
265
266bool AudioContext::isInitialized() const
267{

Callers

nothing calls this directly

Calls 1

stopMethod · 0.45

Tested by

no test coverage detected