diff options
Diffstat (limited to 'src/server/AudioBuffer.cpp')
-rw-r--r-- | src/server/AudioBuffer.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/server/AudioBuffer.cpp b/src/server/AudioBuffer.cpp index cca2f3ae..157eda6c 100644 --- a/src/server/AudioBuffer.cpp +++ b/src/server/AudioBuffer.cpp @@ -54,9 +54,9 @@ AudioBuffer::AudioBuffer(BufferFactory& bufs, PortType type, size_t size) } else { assert(type == PortType::AUDIO); atom()->type = 0;//map->vector_type; - LV2_Atom_Vector* body = (LV2_Atom_Vector*)LV2_ATOM_BODY(atom()); - body->elem_count = size / sizeof(Sample); - body->elem_type = 0;//map->float_type; + LV2_Atom_Vector* body = (LV2_Atom_Vector*)atom(); + body->body.elem_count = size / sizeof(Sample); + body->body.elem_type = 0;//map->float_type; } /*debug << "Created Audio Buffer" << endl << "\tobject @ " << (void*)atom() << endl @@ -74,7 +74,7 @@ AudioBuffer::resize(size_t size) { if (_type == PortType::AUDIO) { ObjectBuffer::resize(size + sizeof(LV2_Atom_Vector)); - vector()->elem_count = size / sizeof(Sample); + vector()->body.elem_count = size / sizeof(Sample); } clear(); } |