summaryrefslogtreecommitdiffstats
path: root/src/engine/BufferFactory.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2010-05-04 04:22:46 +0000
committerDavid Robillard <d@drobilla.net>2010-05-04 04:22:46 +0000
commita377fe171dd248f9418634f5f23d10a9440fd920 (patch)
treeaf17a5315a8c697d67fa8dbcb7695770345dc202 /src/engine/BufferFactory.cpp
parent5fcc724a4bcd9a8111a0a6d483e3d6dcbe97a2d5 (diff)
downloadingen-a377fe171dd248f9418634f5f23d10a9440fd920.tar.gz
ingen-a377fe171dd248f9418634f5f23d10a9440fd920.tar.bz2
ingen-a377fe171dd248f9418634f5f23d10a9440fd920.zip
Rename "object" extension "atom" extension.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@2561 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/engine/BufferFactory.cpp')
-rw-r--r--src/engine/BufferFactory.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/engine/BufferFactory.cpp b/src/engine/BufferFactory.cpp
index 318a1422..36f5bf0a 100644
--- a/src/engine/BufferFactory.cpp
+++ b/src/engine/BufferFactory.cpp
@@ -70,7 +70,7 @@ BufferFactory::set_block_length(SampleCount block_length)
size_t
BufferFactory::audio_buffer_size(SampleCount nframes)
{
- return sizeof(LV2_Object) + sizeof(LV2_Vector_Body) + (nframes * sizeof(float));
+ return sizeof(LV2_Atom) + sizeof(LV2_Vector_Body) + (nframes * sizeof(float));
}
@@ -81,7 +81,7 @@ BufferFactory::default_buffer_size(PortType type)
case PortType::AUDIO:
return audio_buffer_size(_engine.driver()->block_length());
case PortType::CONTROL:
- return sizeof(LV2_Object) + sizeof(float);
+ return sizeof(LV2_Atom) + sizeof(float);
case PortType::EVENTS:
return _engine.driver()->block_length() * event_bytes_per_frame;
default:
@@ -133,17 +133,17 @@ BufferFactory::create(Shared::PortType type, size_t size)
if (type.is_control()) {
AudioBuffer* ret = new AudioBuffer(*this, type, size);
- ret->object()->type = _uris->object_class_vector.id;
- ((LV2_Vector_Body*)ret->object()->body)->elem_type = _uris->object_class_float32.id;
+ ret->atom()->type = _uris->object_class_vector.id;
+ ((LV2_Vector_Body*)ret->atom()->body)->elem_type = _uris->object_class_float32.id;
buffer = ret;
} else if (type.is_audio()) {
AudioBuffer* ret = new AudioBuffer(*this, type, size);
- ret->object()->type = _uris->object_class_float32.id;
+ ret->atom()->type = _uris->object_class_float32.id;
buffer = ret;
} else if (type.is_events()) {
buffer = new EventBuffer(*this, size);
} else if (type.is_value() || type.is_message()) {
- buffer = new ObjectBuffer(*this, std::max(size, sizeof(LV2_Object) + sizeof(void*)));
+ buffer = new ObjectBuffer(*this, std::max(size, sizeof(LV2_Atom) + sizeof(void*)));
} else {
error << "Failed to create buffer of unknown type" << endl;
return Ref();