summaryrefslogtreecommitdiffstats
path: root/src/engine/AudioBuffer.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2010-10-17 01:11:29 +0000
committerDavid Robillard <d@drobilla.net>2010-10-17 01:11:29 +0000
commit5a1ccca68baf9e8efffe3e0297730a911617693d (patch)
tree675764eb06e152f09b1d97c317d445a8050f253a /src/engine/AudioBuffer.cpp
parent78f786d90943cd63eb5db761e910169990c66d93 (diff)
downloadingen-5a1ccca68baf9e8efffe3e0297730a911617693d.tar.gz
ingen-5a1ccca68baf9e8efffe3e0297730a911617693d.tar.bz2
ingen-5a1ccca68baf9e8efffe3e0297730a911617693d.zip
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
Diffstat (limited to 'src/engine/AudioBuffer.cpp')
-rw-r--r--src/engine/AudioBuffer.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/engine/AudioBuffer.cpp b/src/engine/AudioBuffer.cpp
index 56ae2b57..33394254 100644
--- a/src/engine/AudioBuffer.cpp
+++ b/src/engine/AudioBuffer.cpp
@@ -55,7 +55,7 @@ AudioBuffer::AudioBuffer(BufferFactory& bufs, Shared::PortType type, size_t size
} else {
assert(type == PortType::AUDIO);
atom()->type = 0;//map->vector_type;
- LV2_Vector_Body* body = (LV2_Vector_Body*)atom()->body;
+ LV2_Atom_Vector* body = (LV2_Atom_Vector*)atom()->body;
body->elem_count = size / sizeof(Sample);
body->elem_type = 0;//map->float_type;
}
@@ -75,7 +75,7 @@ void
AudioBuffer::resize(size_t size)
{
if (_type == PortType::AUDIO) {
- ObjectBuffer::resize(size + sizeof(LV2_Vector_Body));
+ ObjectBuffer::resize(size + sizeof(LV2_Atom_Vector));
vector()->elem_count = size / sizeof(Sample);
}
clear();