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

Method playSound

source/game/StarNetworkedAnimator.cpp:568–572  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

566}
567
568void NetworkedAnimator::playSound(String const& soundName, int loops) {
569 auto& sound = m_sounds.get(soundName);
570 sound.loops.set(loops);
571 sound.signals.send(SoundSignal::Play);
572}
573
574void NetworkedAnimator::stopAllSounds(String const& soundName, float rampTime) {
575 auto& sound = m_sounds.get(soundName);

Callers 3

pickupItemsMethod · 0.80
destroyMethod · 0.80

Calls 3

getMethod · 0.45
setMethod · 0.45
sendMethod · 0.45

Tested by

no test coverage detected