Capycore Engine  0.1.0
A simple and lightweight game engine written in C++ based on the Unity API architecture.
Loading...
Searching...
No Matches
generic_sound_instance.h
Go to the documentation of this file.
1#pragma once
2
4
5#include <memory>
6
13 public:
14 GenericSoundInstance(std::shared_ptr<SoundResource> resource,
15 float volume = 1.0f);
16 ~GenericSoundInstance() override = default;
17
18 void play() override;
19 void pause() override;
20 void resume() override;
21 void stop() override;
22
23 [[nodiscard]] bool is_playing() const noexcept override;
24 [[nodiscard]] bool is_paused() const noexcept override;
25 [[nodiscard]] bool is_finished() override;
26};
A generic implementation of a sound instance. Provides the basic functionality while not tied to any ...
Definition generic_sound_instance.h:12
void stop() override
void pause() override
bool is_finished() override
bool is_playing() const noexcept override
void resume() override
bool is_paused() const noexcept override
~GenericSoundInstance() override=default
void play() override
GenericSoundInstance(std::shared_ptr< SoundResource > resource, float volume=1.0f)
Represents an instance of a generic sound within the audio system. The reason for separating SoundIns...
Definition sound_instance.h:14
const std::shared_ptr< SoundResource > & resource() const noexcept
float volume() const noexcept