NAP
Public Member Functions | Public Attributes | List of all members
MultiAudioFileResource Class Reference

#include <audio/resource/audiofileresource.h>

Public Member Functions

 MultiAudioFileResource (Core &core)
 
bool init (utility::ErrorState &errorState) override
 
- Public Member Functions inherited from AudioBufferResource
 AudioBufferResource (Core &)
 
float getSampleRate () const
 
DiscreteTimeValue getSize () const
 
unsigned int getChannelCount () const
 
SafePtr< MultiSampleBuffergetBuffer ()
 
DiscreteTimeValue toSamples (TimeValue milliseconds) const
 
TimeValue toMilliseconds (DiscreteTimeValue samples) const
 
- Public Member Functions inherited from Resource
 Resource ()
 
- Public Member Functions inherited from Object
 Object ()
 
virtual ~Object ()
 
virtual void onDestroy ()
 
 Object (Object &)=delete
 
Objectoperator= (const Object &)=delete
 
 Object (Object &&)=delete
 
Objectoperator= (Object &&)=delete
 

Public Attributes

std::vector< std::string > mAudioFilePaths
 property: 'AudioFilePaths' The paths to the audio files on disk More...
 
- Public Attributes inherited from Object
std::string mID
 Property: 'mID' unique name of the object. Used as an identifier by the system. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from Object
static bool isIDProperty (rtti::Instance &object, const rtti::Property &property)
 
- Protected Member Functions inherited from AudioBufferResource
void setSampleRate (float sampleRate)
 

Description

An audio buffer resource whose content is made up out of the content of multiple audio files on disk. Each file adds it's channels as new channels to the resource. So two stereo files will make a quadro resource.

Inheritance diagram for MultiAudioFileResource:
[legend]
Collaboration diagram for MultiAudioFileResource:
[legend]

Constructor & Destructor Documentation

◆ MultiAudioFileResource()

Member Function Documentation

◆ init()

bool init ( utility::ErrorState errorState)
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.

Parameters
errorStateshould contain the error message when initialization fails.
Returns
if initialization succeeded or failed.

Reimplemented from Object.

Member Data Documentation

◆ mAudioFilePaths

std::vector<std::string> mAudioFilePaths

property: 'AudioFilePaths' The paths to the audio files on disk