diff options
author | David Robillard <d@drobilla.net> | 2010-05-04 04:22:46 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2010-05-04 04:22:46 +0000 |
commit | a377fe171dd248f9418634f5f23d10a9440fd920 (patch) | |
tree | af17a5315a8c697d67fa8dbcb7695770345dc202 /src/engine/AudioBuffer.hpp | |
parent | 5fcc724a4bcd9a8111a0a6d483e3d6dcbe97a2d5 (diff) | |
download | ingen-a377fe171dd248f9418634f5f23d10a9440fd920.tar.gz ingen-a377fe171dd248f9418634f5f23d10a9440fd920.tar.bz2 ingen-a377fe171dd248f9418634f5f23d10a9440fd920.zip |
Rename "object" extension "atom" extension.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@2561 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/engine/AudioBuffer.hpp')
-rw-r--r-- | src/engine/AudioBuffer.hpp | 8 |
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) |