summaryrefslogtreecommitdiffstats
path: root/src/server/events
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2017-03-20 03:04:15 +0100
committerDavid Robillard <d@drobilla.net>2017-03-20 03:19:33 +0100
commit59f579df71e52207bcdda15d4abb3562fdc1d6f2 (patch)
tree0b0749c2b7da1debffebca882bc46cb30ba1bacd /src/server/events
parent8bf529bb24c03ebdce884cf9a4288812bb9b2cd5 (diff)
downloadingen-59f579df71e52207bcdda15d4abb3562fdc1d6f2.tar.gz
ingen-59f579df71e52207bcdda15d4abb3562fdc1d6f2.tar.bz2
ingen-59f579df71e52207bcdda15d4abb3562fdc1d6f2.zip
Remove dubious Buffer::nframes() method
Diffstat (limited to 'src/server/events')
-rw-r--r--src/server/events/Disconnect.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/events/Disconnect.cpp b/src/server/events/Disconnect.cpp
index 176f0999..1411e666 100644
--- a/src/server/events/Disconnect.cpp
+++ b/src/server/events/Disconnect.cpp
@@ -96,7 +96,7 @@ Disconnect::Impl::Impl(Engine& e,
const float value = _head->value().get<float>();
for (uint32_t i = 0; i < _voices->size(); ++i) {
Buffer* buf = _voices->at(i).buffer.get();
- buf->set_block(value, 0, buf->nframes());
+ buf->set_block(value, 0, e.block_length());
}
} else {
for (uint32_t i = 0; i < _voices->size(); ++i) {