summaryrefslogtreecommitdiffstats
path: root/src/server/BufferFactory.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/server/BufferFactory.cpp')
-rw-r--r--src/server/BufferFactory.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/server/BufferFactory.cpp b/src/server/BufferFactory.cpp
index 88ec195b..c05632e5 100644
--- a/src/server/BufferFactory.cpp
+++ b/src/server/BufferFactory.cpp
@@ -77,7 +77,6 @@ BufferFactory::audio_buffer_size(SampleCount nframes)
uint32_t
BufferFactory::default_size(LV2_URID type) const
{
- static const uint32_t SEQ_BYTES_PER_FRAME = 4;
if (type == _uris.atom_Float) {
return sizeof(LV2_Atom_Float);
} else if (type == _uris.atom_Sound) {
@@ -86,7 +85,7 @@ BufferFactory::default_size(LV2_URID type) const
return sizeof(LV2_Atom_URID);
} else if (type == _uris.atom_Sequence) {
if (_seq_size == 0) {
- return _engine.driver()->block_length() * SEQ_BYTES_PER_FRAME;
+ return _engine.driver()->seq_size();
} else {
return _seq_size;
}