48class AUD_API AnimateableProperty :
private Buffer
55 Unknown(
int start,
int end) :
56 start(start), end(end) {}
66 std::recursive_mutex m_mutex;
69 std::list<Unknown> m_unknown;
72 AnimateableProperty(
const AnimateableProperty&) =
delete;
73 AnimateableProperty& operator=(
const AnimateableProperty&) =
delete;
75 void AUD_LOCAL updateUnknownCache(
int start,
int end);
115 void write(
const float* data,
int position,
int count);
130 void read(
float position,
float* out);
AnimateablePropertyType
Possible animatable properties for Sequencer Factories and Entries.
Definition AnimateableProperty.h:35
#define AUD_NAMESPACE_END
Closes the audaspace namespace aud.
Definition Audaspace.h:119
#define AUD_LOCAL
Used for hiding symbols from export in the shared library.
Definition Audaspace.h:80
#define AUD_NAMESPACE_BEGIN
Opens the audaspace namespace aud.
Definition Audaspace.h:116
#define AUD_API
Used for exporting symbols in the shared library.
Definition Audaspace.h:93
AnimateableProperty(int count=1)
Creates a new animateable property.
void write(const float *data)
Writes the properties value and marks it non-animated.
void read(float position, float *out)
Reads the properties value.
~AnimateableProperty()
Destroys the animateable property.
void writeConstantRange(const float *data, int position_start, int position_end)
Fills the properties frame range with constant value and marks it animated.
bool isAnimated() const
Returns whether the property is animated.
float readSingle(float position)
Reads the property's value at the specified position, assuming there is exactly one value.
const Buffer & getBuffer()
Returns this object cast as a Buffer.
void write(const float *data, int position, int count)
Writes the properties value and marks it animated.
AnimateableProperty(int count, float value)
Creates a new animateable property.
int getCount() const
Returns the count of floats for a single property.