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

Method SoundEffect

src/Abyss/Streams/SoundEffect.cpp:8–12  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6namespace Abyss::Streams {
7
8SoundEffect::SoundEffect(std::unique_ptr<AudioStream> audioStream) : _audioStream(std::move(audioStream)), _mutex() {
9 _audioStream->stop();
10
11 Singletons::getSoundEffectProvider().addSoundEffect(this);
12}
13
14SoundEffect::~SoundEffect() { Singletons::getSoundEffectProvider().removeSoundEffect(this); }
15

Callers

nothing calls this directly

Calls 2

addSoundEffectMethod · 0.80
stopMethod · 0.45

Tested by

no test coverage detected