MCPcopy Create free account
hub / github.com/AbyssEngine/AbyssEngineOld / play

Method play

src/Abyss/Streams/SoundEffect.cpp:16–20  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14SoundEffect::~SoundEffect() { Singletons::getSoundEffectProvider().removeSoundEffect(this); }
15
16void SoundEffect::play() {
17 if (_audioStream->isPlaying())
18 _audioStream->stop();
19 _audioStream->play();
20}
21
22bool SoundEffect::getIsPlaying() { return _audioStream->isPlaying(); }
23

Callers 3

setBackgroundMusicMethod · 0.45
VideoStreamMethod · 0.45
handleMouseMethod · 0.45

Calls 2

isPlayingMethod · 0.80
stopMethod · 0.45

Tested by

no test coverage detected