|
3DRadSpace 0.1.0Alpha
3DRadSpace is a free, simple to use, rapid application development game engine.
|
Represents a audio clip. More...
#include <Sound.hpp>


Public Member Functions | |
| Sound (AudioEngine audio, string path) | |
| Sound (IntPtr ptrSound) | |
| void | Dispose () |
| Sound (IService *audio, const std::filesystem::path &path) | |
| Constructs an sound from the given audio service and file path. | |
| Sound (const Sound &)=delete | |
| Removed copy constructor because the sound buffer is unique and cannot be copied. | |
| Sound (Sound &&snd) noexcept | |
| Move constructor. Transfers ownership of the sound buffer to this instance. | |
| Sound & | operator= (const Sound &)=delete |
| Removed copy assignment operator because the sound buffer is unique and cannot be copied. | |
| Sound & | operator= (Sound &&snd) noexcept |
| Move assignement operator. Transfers ownership of the sound buffer to this instance. | |
| Reflection::UUID | GetUUID () const noexcept override |
| Returns an unique identifier for the sound asset type. | |
| const char * | FileExtension () const noexcept override |
| Returns an WAV/OGG file filter. | |
| std::type_index | InitializationService () const noexcept override |
| Returns the type info of the audio service used to initialize this sound asset. | |
| ~Sound () override | |
| Frees the audio buffer associated with this sound instance. | |
| Public Member Functions inherited from Engine3DRadSpace.Content.IAsset | |
| virtual | ~IAsset ()=default |
Protected Member Functions | |
| virtual void | Dispose (bool disposing) |
| AudioBuffer | _attemptLoading (const std::filesystem::path &path) |
| Sound (Internal::AssetUUIDReader dummy) | |
| Protected Member Functions inherited from Engine3DRadSpace.Content.IAsset | |
| IAsset ()=default | |
| IAsset (const IAsset &)=default | |
| IAsset & | operator= (const IAsset &)=default |
| IAsset (IAsset &&) noexcept=default | |
| IAsset & | operator= (IAsset &&) noexcept=default |
Protected Attributes | |
| AudioEngine * | _audio |
| unsigned int | _bufferID |
Properties | |
| nint | Handle [get] |
| Properties inherited from Engine3DRadSpace.Content.IAsset | |
| UUID | UUID [get] |
| string | FileExtension [get] |
Friends | |
| class | SoundInstance |
| struct | Internal::AssetUUIDReader |
Represents a audio clip.
|
inline |
|
inline |
|
protected |
| Sound::Sound | ( | IService * | audio, |
| const std::filesystem::path & | path ) |
Constructs an sound from the given audio service and file path.
| audio | Audio service |
| path | File path to an WAV or OGG sound clip |
|
delete |
Removed copy constructor because the sound buffer is unique and cannot be copied.
unused
|
noexcept |
Move constructor. Transfers ownership of the sound buffer to this instance.
| snd | The sound to move from |
|
override |
Frees the audio buffer associated with this sound instance.
|
protected |
|
inline |
|
inlineprotectedvirtual |
|
overridevirtualnoexcept |
Returns an WAV/OGG file filter.
Implements Engine3DRadSpace.Content.IAsset.
|
overridevirtualnoexcept |
Returns an unique identifier for the sound asset type.
Implements Engine3DRadSpace.Content.IAsset.
|
overridevirtualnoexcept |
Returns the type info of the audio service used to initialize this sound asset.
Implements Engine3DRadSpace.Content.IAsset.
Removed copy assignment operator because the sound buffer is unique and cannot be copied.
| from | unused |
Move assignement operator. Transfers ownership of the sound buffer to this instance.
| snd | The sound to move from |
|
friend |
|
friend |
|
protected |
|
protected |
|
get |