Class representing a single playable piece of audio.
More...
#include <types.hpp>
|
|
| Sound (MIX_Audio *sound) |
| | Initializer for this sound.
|
|
| Sound (Sound &&other) |
| | Move constructor.
|
|
| Sound (const Sound &other)=delete |
| | Copy constructor.
|
|
Sound & | operator= (Sound &&other) |
| | Move assignment.
|
|
Sound & | operator= (const Sound &other)=delete |
| | Copy assignment.
|
|
int32_t | getDuration () const |
| | Returns the duration of this sound in millis, with -1 indicating the audio is infinite.
|
| std::string | getResourceTypeName_ () const override |
| | Get the resource type string for this resource.
|
|
virtual | ~IResource ()=default |
| | Destroy the IResource object.
|
|
|
static std::string | getResourceTypeName () |
| | The id string representing this kind of resource.
|
|
|
std::unique_ptr< MIX_Audio, decltype(&MIX_DestroyAudio)> | mAudio |
| | The underlying SDL3_mixer audio object.
|
Class representing a single playable piece of audio.
The documentation for this class was generated from the following files:
- ToyMaker_Main/include/toymaker/engine/sound/types.hpp
- ToyMaker_Main/src/sound/types.cpp