|
| SoundBuffer (AudioFormat format, UInt64 sampleCount, UInt32 sampleRate, const Int16 *samples) |
| Constructs a SoundBuffer object. More...
|
|
| SoundBuffer (const SoundBuffer &)=delete |
|
| SoundBuffer (SoundBuffer &&)=delete |
|
| ~SoundBuffer () |
| Destructs the object and calls Destroy. More...
|
|
bool | Create (AudioFormat format, UInt64 sampleCount, UInt32 sampleRate, const Int16 *samples) |
| Creates the SoundBuffer object. More...
|
|
void | Destroy () |
| Destroys the current sound buffer and frees resources.
|
|
UInt32 | GetDuration () const |
| Gets the duration of the sound buffer. More...
|
|
AudioFormat | GetFormat () const |
| Gets the format of the sound buffer. More...
|
|
const Int16 * | GetSamples () const |
| Gets the internal raw samples. More...
|
|
UInt64 | GetSampleCount () const |
| Gets the number of samples in the sound buffer. More...
|
|
UInt32 | GetSampleRate () const |
| Gets the rates of sample in the sound buffer. More...
|
|
bool | IsValid () const |
| Checks whether the sound buffer is valid. More...
|
|
bool | LoadFromFile (const String &filePath, const SoundBufferParams ¶ms=SoundBufferParams()) |
| Loads the sound buffer from file. More...
|
|
bool | LoadFromMemory (const void *data, std::size_t size, const SoundBufferParams ¶ms=SoundBufferParams()) |
| Loads the sound buffer from memory. More...
|
|
bool | LoadFromStream (Stream &stream, const SoundBufferParams ¶ms=SoundBufferParams()) |
| Loads the sound buffer from stream. More...
|
|
SoundBuffer & | operator= (const SoundBuffer &)=delete |
|
SoundBuffer & | operator= (SoundBuffer &&)=delete |
|
| NazaraSignal (OnSoundBufferDestroy, const SoundBuffer *) |
|
| NazaraSignal (OnSoundBufferRelease, const SoundBuffer *) |
|
| RefCounted (bool persistent=true) |
| Constructs a RefCounted object with a persistance aspect. More...
|
|
| RefCounted (const RefCounted &)=delete |
|
| RefCounted (RefCounted &&)=default |
|
virtual | ~RefCounted () |
| Destructs the object. More...
|
|
void | AddReference () const |
| Adds a reference to the object.
|
|
unsigned int | GetReferenceCount () const |
| Gets the number of references to the object. More...
|
|
bool | IsPersistent () const |
| Checks whether the object is persistent. More...
|
|
bool | RemoveReference () const |
| Removes a reference to the object. More...
|
|
bool | SetPersistent (bool persistent=true, bool checkReferenceCount=false) |
| Sets the persistence of the object. More...
|
|
RefCounted & | operator= (const RefCounted &)=delete |
|
RefCounted & | operator= (RefCounted &&)=default |
|
| Resource (const Resource &)=default |
|
| Resource (Resource &&) noexcept=default |
|
const String & | GetFilePath () const |
| Gets the file path associated with the resource. More...
|
|
void | SetFilePath (const String &filePath) |
| Sets the file path associated with the resource. More...
|
|
Resource & | operator= (const Resource &)=default |
|
Resource & | operator= (Resource &&) noexcept=default |
|
Audio class that represents a buffer for sound.