|
Capycore Engine
0.1.0
A simple and lightweight game engine written in C++ based on the Unity API architecture.
|
A generic implementation of a sound instance. Provides the basic functionality while not tied to any specific audio backend. More...
#include <generic_sound_instance.h>
Public Member Functions | |
| GenericSoundInstance (std::shared_ptr< SoundResource > resource, float volume=1.0f) | |
| ~GenericSoundInstance () override=default | |
| void | play () override |
| void | pause () override |
| void | resume () override |
| void | stop () override |
| bool | is_playing () const noexcept override |
| bool | is_paused () const noexcept override |
| bool | is_finished () override |
Public Member Functions inherited from SoundInstance | |
| SoundInstance (std::shared_ptr< SoundResource > resource, float volume=1.0f) | |
| virtual | ~SoundInstance ()=default |
| const std::shared_ptr< SoundResource > & | resource () const noexcept |
| float | volume () const noexcept |
| void | volume (float volume) noexcept |
| bool | finished () const noexcept |
| void | finished (bool finished) noexcept |
| bool | loop () const noexcept |
| void | loop (bool loop) noexcept |
Additional Inherited Members | |
Protected Attributes inherited from SoundInstance | |
| std::shared_ptr< SoundResource > | resource_ |
| bool | loop_ {false} |
| bool | playing_ {false} |
| bool | paused_ {false} |
| bool | finished_ {false} |
| float | volume_ {1.0f} |
A generic implementation of a sound instance. Provides the basic functionality while not tied to any specific audio backend.
| GenericSoundInstance::GenericSoundInstance | ( | std::shared_ptr< SoundResource > | resource, |
| float | volume = 1.0f |
||
| ) |
|
overridedefault |
|
overridevirtual |
Reimplemented from SoundInstance.
|
overridevirtualnoexcept |
Reimplemented from SoundInstance.
|
overridevirtualnoexcept |
Reimplemented from SoundInstance.
|
overridevirtual |
Reimplemented from SoundInstance.
|
overridevirtual |
Reimplemented from SoundInstance.
|
overridevirtual |
Reimplemented from SoundInstance.
|
overridevirtual |
Reimplemented from SoundInstance.