summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-03-02 00:17:36 +0000
committerDavid Robillard <d@drobilla.net>2012-03-02 00:17:36 +0000
commitf09ae972f61086054af45f7f6b7102a6c3d70700 (patch)
tree62f9789d9593076783d7d733193d90cd31555628
parent4ded8d71724129f814f3f5fef071a966b76e1c18 (diff)
downloadingen-f09ae972f61086054af45f7f6b7102a6c3d70700.tar.gz
ingen-f09ae972f61086054af45f7f6b7102a6c3d70700.tar.bz2
ingen-f09ae972f61086054af45f7f6b7102a6c3d70700.zip
Update for latest atom extension.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@4008 a436a847-0d15-0410-975c-d299462d15a1
-rw-r--r--src/server/AudioBuffer.cpp5
-rw-r--r--src/server/BufferFactory.cpp2
2 files changed, 3 insertions, 4 deletions
diff --git a/src/server/AudioBuffer.cpp b/src/server/AudioBuffer.cpp
index 157eda6c..0a0c6a79 100644
--- a/src/server/AudioBuffer.cpp
+++ b/src/server/AudioBuffer.cpp
@@ -55,8 +55,8 @@ AudioBuffer::AudioBuffer(BufferFactory& bufs, PortType type, size_t size)
assert(type == PortType::AUDIO);
atom()->type = 0;//map->vector_type;
LV2_Atom_Vector* body = (LV2_Atom_Vector*)atom();
- body->body.elem_count = size / sizeof(Sample);
- body->body.elem_type = 0;//map->float_type;
+ body->body.child_size = sizeof(Sample);
+ body->body.child_type = 0;//map->float_type;
}
/*debug << "Created Audio Buffer" << endl
<< "\tobject @ " << (void*)atom() << endl
@@ -74,7 +74,6 @@ AudioBuffer::resize(size_t size)
{
if (_type == PortType::AUDIO) {
ObjectBuffer::resize(size + sizeof(LV2_Atom_Vector));
- vector()->body.elem_count = size / sizeof(Sample);
}
clear();
}
diff --git a/src/server/BufferFactory.cpp b/src/server/BufferFactory.cpp
index 42bb3b0b..88e417cd 100644
--- a/src/server/BufferFactory.cpp
+++ b/src/server/BufferFactory.cpp
@@ -141,7 +141,7 @@ BufferFactory::create(PortType type, size_t size)
} else if (type.is_audio()) {
AudioBuffer* ret = new AudioBuffer(*this, type, audio_buffer_size(size));
ret->atom()->type = _uris->atom_Vector.id;
- ((LV2_Atom_Vector*)ret->atom())->body.elem_type = _uris->atom_Float32.id;
+ ((LV2_Atom_Vector*)ret->atom())->body.child_type = _uris->atom_Float32.id;
buffer = ret;
} else if (type.is_events()) {
buffer = new EventBuffer(*this, size);