#include <audio/resource/audiobufferresource.h>
Public Member Functions | |
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 bool | init (utility::ErrorState &errorState) |
virtual void | onDestroy () |
Object (Object &)=delete | |
Object & | operator= (const Object &)=delete |
Object (Object &&)=delete | |
Object & | operator= (Object &&)=delete |
Protected Member Functions | |
void | setSampleRate (float sampleRate) |
Additional Inherited Members | |
![]() | |
static bool | isIDProperty (rtti::Instance &object, const rtti::Property &property) |
![]() | |
std::string | mID |
Property: 'mID' unique name of the object. Used as an identifier by the system. More... | |
A buffer of multichannel audio data in memory.
AudioBufferResource | ( | Core & | ) |
SafePtr<MultiSampleBuffer> getBuffer | ( | ) |
unsigned int getChannelCount | ( | ) | const |
float getSampleRate | ( | ) | const |
DiscreteTimeValue getSize | ( | ) | const |
|
protected |
Sets the sample rate at which the audio material in the buffer was sampled.
TimeValue toMilliseconds | ( | DiscreteTimeValue | samples | ) | const |
Utility to convert a position in samples to a position in milliseconds
DiscreteTimeValue toSamples | ( | TimeValue | milliseconds | ) | const |
Utility to convert a position in milliseconds to a position in samples