diff options
Diffstat (limited to 'src/server/Buffer.hpp')
-rw-r--r-- | src/server/Buffer.hpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/server/Buffer.hpp b/src/server/Buffer.hpp index 939f1f87..bc8ff1aa 100644 --- a/src/server/Buffer.hpp +++ b/src/server/Buffer.hpp @@ -115,6 +115,14 @@ public: const SampleCount start, const SampleCount end) { + if (is_sequence()) { + append_event(start, sizeof(val), _factory.uris().atom_Float, + reinterpret_cast<const uint8_t*>( + static_cast<const float*>(&val))); + _value_buffer->get<LV2_Atom_Float>()->body = val; + return; + } + assert(is_audio() || is_control()); assert(end <= _capacity / sizeof(Sample)); // Note: Do not change this without ensuring GCC can still vectorize it |