From 5a1ccca68baf9e8efffe3e0297730a911617693d Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 17 Oct 2010 01:11:29 +0000 Subject: Support current versions of LV2 atom, atom-port, and context extensions. Working use case in this revision: lolep.parse => lolep.print (set parse input to some string, it will be parsed, send to print as an LV2 atom, then printed to the console by print). git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@2631 a436a847-0d15-0410-975c-d299462d15a1 --- src/engine/AudioBuffer.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/engine/AudioBuffer.hpp') diff --git a/src/engine/AudioBuffer.hpp b/src/engine/AudioBuffer.hpp index 7c6115e2..38623696 100644 --- a/src/engine/AudioBuffer.hpp +++ b/src/engine/AudioBuffer.hpp @@ -48,13 +48,13 @@ public: inline Sample* data() const { return (is_control()) ? (Sample*)atom()->body - : (Sample*)(atom()->body + sizeof(LV2_Vector_Body)); + : (Sample*)(atom()->body + sizeof(LV2_Atom_Vector)); } inline SampleCount nframes() const { return (is_control()) ? 1 - : (_size - sizeof(LV2_Atom) - sizeof(LV2_Vector_Body)) / sizeof(Sample); + : (_size - sizeof(LV2_Atom) - sizeof(LV2_Atom_Vector)) / 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*)atom()->body; } + LV2_Atom_Vector* vector() { return(LV2_Atom_Vector*)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) -- cgit v1.2.1