diff options
author | David Robillard <d@drobilla.net> | 2017-12-17 23:46:20 +0100 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2019-01-12 18:20:04 +0100 |
commit | 967a8b9d6690a5ece385d07af04c322d645de23f (patch) | |
tree | ade394d2a4b23c0007b58b6ab86d2427711f8bf5 /src/server/events | |
parent | 79fe75853ed8205674335f88e4e9c0e9dec137f9 (diff) | |
download | ingen-967a8b9d6690a5ece385d07af04c322d645de23f.tar.gz ingen-967a8b9d6690a5ece385d07af04c322d645de23f.tar.bz2 ingen-967a8b9d6690a5ece385d07af04c322d645de23f.zip |
Reduce port memory overhead
Diffstat (limited to 'src/server/events')
-rw-r--r-- | src/server/events/Delta.cpp | 6 | ||||
-rw-r--r-- | src/server/events/Get.cpp | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/src/server/events/Delta.cpp b/src/server/events/Delta.cpp index 7404aea6..a0b7f2ef 100644 --- a/src/server/events/Delta.cpp +++ b/src/server/events/Delta.cpp @@ -561,11 +561,11 @@ Delta::execute(RunContext& context) block->set_enabled(false); break; case SpecialType::NONE: - if (port) { + if (port && value.type() == uris.atom_Float) { if (key == uris.lv2_minimum) { - port->set_minimum(value); + port->set_minimum(value.get<float>()); } else if (key == uris.lv2_maximum) { - port->set_maximum(value); + port->set_maximum(value.get<float>()); } } case SpecialType::LOADED_BUNDLE: diff --git a/src/server/events/Get.cpp b/src/server/events/Get.cpp index ad412beb..1134983d 100644 --- a/src/server/events/Get.cpp +++ b/src/server/events/Get.cpp @@ -91,11 +91,11 @@ Get::post_process() URIs& uris = _engine.world()->uris(); Properties props = { { uris.param_sampleRate, - uris.forge.make(int32_t(_engine.sample_rate())) }, + Atom(uris.forge.make(int32_t(_engine.sample_rate()))) }, { uris.bufsz_maxBlockLength, - uris.forge.make(int32_t(_engine.block_length())) }, + Atom(uris.forge.make(int32_t(_engine.block_length()))) }, { uris.ingen_numThreads, - uris.forge.make(int32_t(_engine.n_threads())) } }; + Atom(uris.forge.make(int32_t(_engine.n_threads()))) } }; const Properties load_props = _engine.load_properties(); props.insert(load_props.begin(), load_props.end()); |