diff options
author | David Robillard <d@drobilla.net> | 2017-03-19 09:13:46 +0100 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2017-03-19 09:13:46 +0100 |
commit | f062189c8219041fad45cfd340c367e5c4796933 (patch) | |
tree | 346222e8dc724e2a1d8ebc2a3aacc2bb1d8b4698 /src/server/events | |
parent | 1a31907d1ad2e9c8ed0cdced09e81f7a7ec07504 (diff) | |
download | ingen-f062189c8219041fad45cfd340c367e5c4796933.tar.gz ingen-f062189c8219041fad45cfd340c367e5c4796933.tar.bz2 ingen-f062189c8219041fad45cfd340c367e5c4796933.zip |
Shrink status bar text and fix initial DSP load display
Diffstat (limited to 'src/server/events')
-rw-r--r-- | src/server/events/Get.cpp | 23 |
1 files changed, 13 insertions, 10 deletions
diff --git a/src/server/events/Get.cpp b/src/server/events/Get.cpp index 5988f0e0..7bc2cb6f 100644 --- a/src/server/events/Get.cpp +++ b/src/server/events/Get.cpp @@ -1,6 +1,6 @@ /* This file is part of Ingen. - Copyright 2007-2016 David Robillard <http://drobilla.net/> + Copyright 2007-2017 David Robillard <http://drobilla.net/> Ingen is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free @@ -88,15 +88,18 @@ Get::post_process() _engine.broadcaster()->send_plugins_to(_request_client.get(), _plugins); } else if (_uri == "ingen:/engine") { // TODO: Keep a proper RDF model of the engine - URIs& uris = _engine.world()->uris(); - _request_client->put( - Raul::URI("ingen:/engine"), - { { uris.param_sampleRate, - uris.forge.make(int32_t(_engine.sample_rate())) }, - { uris.bufsz_maxBlockLength, - uris.forge.make(int32_t(_engine.block_length())) }, - { uris.ingen_numThreads, - uris.forge.make(int32_t(_engine.n_threads())) } }); + URIs& uris = _engine.world()->uris(); + Properties props = { + { uris.param_sampleRate, + uris.forge.make(int32_t(_engine.sample_rate())) }, + { uris.bufsz_maxBlockLength, + uris.forge.make(int32_t(_engine.block_length())) }, + { uris.ingen_numThreads, + uris.forge.make(int32_t(_engine.n_threads())) } }; + + const Properties load_props = _engine.load_properties(); + props.insert(load_props.begin(), load_props.end()); + _request_client->put(Raul::URI("ingen:/engine"), props); } else { _response.send(_request_client.get()); } |