summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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);