#include <audio/resource/audiofileresource.h>
Public Member Functions | |
AudioFileResource (Core &core) | |
bool | init (utility::ErrorState &errorState) override |
![]() | |
AudioBufferResource (Core &) | |
float | getSampleRate () const |
DiscreteTimeValue | getSize () const |
unsigned int | getChannelCount () const |
SafePtr< MultiSampleBuffer > | getBuffer () |
DiscreteTimeValue | toSamples (TimeValue milliseconds) const |
TimeValue | toMilliseconds (DiscreteTimeValue samples) const |
![]() | |
Resource () | |
![]() | |
Object () | |
virtual | ~Object () |
virtual void | onDestroy () |
Object (Object &)=delete | |
Object & | operator= (const Object &)=delete |
Object (Object &&)=delete | |
Object & | operator= (Object &&)=delete |
Public Attributes | |
std::string | mAudioFilePath = "" |
property: 'AudioFilePath' The path to the audio file on disk More... | |
![]() | |
std::string | mID |
Property: 'mID' unique name of the object. Used as an identifier by the system. More... | |
Additional Inherited Members | |
![]() | |
static bool | isIDProperty (rtti::Instance &object, const rtti::Property &property) |
![]() | |
void | setSampleRate (float sampleRate) |
Loads an audio file from disk into memory.
AudioFileResource | ( | Core & | core | ) |
|
overridevirtual |
Override this method to initialize the object after de-serialization. When called it is safe to assume that all dependencies have been resolved up to this point.
errorState | should contain the error message when initialization fails. |
Reimplemented from Object.
std::string mAudioFilePath = "" |
property: 'AudioFilePath' The path to the audio file on disk