MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / stopAll

Method stopAll

source/base/StarMixer.cpp:224–229  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

222}
223
224void Mixer::stopAll(float rampTime) {
225 MutexLocker locker(m_queueMutex);
226 float vel = rateOfChangeFromRampTime(rampTime);
227 for (auto const& p : m_audios)
228 p.first->stop(vel);
229}
230
231void Mixer::read(int16_t* outBuffer, size_t frameCount, ExtraMixFunction extraMixFunction) {
232 // Make this method as least locky as possible by copying all the needed

Callers

nothing calls this directly

Calls 2

rateOfChangeFromRampTimeFunction · 0.85
stopMethod · 0.45

Tested by

no test coverage detected