summaryrefslogtreecommitdiffstats
path: root/src/engine/AudioBuffer.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/engine/AudioBuffer.hpp')
-rw-r--r--src/engine/AudioBuffer.hpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/engine/AudioBuffer.hpp b/src/engine/AudioBuffer.hpp
index 7edfdef3..bf6cb148 100644
--- a/src/engine/AudioBuffer.hpp
+++ b/src/engine/AudioBuffer.hpp
@@ -47,14 +47,14 @@ public:
inline Sample* data() const {
return (is_control())
- ? (Sample*)object()->body
- : (Sample*)(object()->body + sizeof(LV2_Vector_Body));
+ ? (Sample*)atom()->body
+ : (Sample*)(atom()->body + sizeof(LV2_Vector_Body));
}
inline SampleCount nframes() const {
return (is_control())
? 1
- : (_size - sizeof(LV2_Object) - sizeof(LV2_Vector_Body)) / sizeof(Sample);
+ : (_size - sizeof(LV2_Atom) - sizeof(LV2_Vector_Body)) / sizeof(Sample);
}
inline Sample& value_at(size_t offset) const
@@ -68,7 +68,7 @@ public:
private:
enum State { OK, HALF_SET_CYCLE_1, HALF_SET_CYCLE_2 };
- LV2_Vector_Body* vector() { return(LV2_Vector_Body*)object()->body; }
+ LV2_Vector_Body* vector() { return(LV2_Vector_Body*)atom()->body; }
State _state; ///< State of buffer for setting values next cycle
Sample _set_value; ///< Value set by set_value (for completing the set next cycle)