summaryrefslogtreecommitdiffstats
path: root/src/server/AudioBuffer.hpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-02-08 02:34:23 +0000
committerDavid Robillard <d@drobilla.net>2012-02-08 02:34:23 +0000
commit6ccb5f6ca1e291d5adad58038a742caee58f959c (patch)
tree395ca79b3e7fc33cef5b6076163d382f74942afc /src/server/AudioBuffer.hpp
parent1564ca89c0bff4e6eb26448bdc45de9476a47655 (diff)
downloadingen-6ccb5f6ca1e291d5adad58038a742caee58f959c.tar.gz
ingen-6ccb5f6ca1e291d5adad58038a742caee58f959c.tar.bz2
ingen-6ccb5f6ca1e291d5adad58038a742caee58f959c.zip
Update for latest Atom extension.
Probably fix #802. git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@3976 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/server/AudioBuffer.hpp')
-rw-r--r--src/server/AudioBuffer.hpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/server/AudioBuffer.hpp b/src/server/AudioBuffer.hpp
index 5ecbcea5..4edc45c9 100644
--- a/src/server/AudioBuffer.hpp
+++ b/src/server/AudioBuffer.hpp
@@ -52,8 +52,8 @@ public:
inline Sample* data() const {
return (is_control())
- ? (Sample*)atom()->body
- : (Sample*)(atom()->body + sizeof(LV2_Atom_Vector));
+ ? (Sample*)LV2_ATOM_BODY(atom())
+ : (Sample*)LV2_ATOM_CONTENTS(LV2_Atom_Vector, atom());
}
inline SampleCount nframes() const {
@@ -73,7 +73,7 @@ public:
private:
enum State { OK, HALF_SET_CYCLE_1, HALF_SET_CYCLE_2 };
- LV2_Atom_Vector* vector() { return(LV2_Atom_Vector*)atom()->body; }
+ LV2_Atom_Vector* vector() { return (LV2_Atom_Vector*)atom(); }
State _state; ///< State of buffer for setting values next cycle
Sample _set_value; ///< Value set by set_value (for completing the set next cycle)