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

Class SoundEffect

src/Abyss/Streams/SoundEffect.h:11–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9namespace Abyss::Streams {
10
11class SoundEffect final : public Common::SoundEffectInterface {
12 std::unique_ptr<AudioStream> _audioStream;
13 float _volume = 1.0f;
14 float _volumeActual = 1.0f;
15 std::mutex _mutex;
16
17 public:
18 explicit SoundEffect(std::unique_ptr<AudioStream> audioStream);
19 ~SoundEffect() override;
20 void play() override;
21 bool getIsPlaying() override;
22 void stop() override;
23 void pause() override;
24 bool getIsPaused() override;
25 bool getLoop() override;
26 void setLoop(bool looping) override;
27 float getVolume() override;
28 void setVolume(float volume) override;
29 int16_t getSample() override;
30};
31
32} // namespace Abyss::Streams

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected