diff options
author | David Robillard <d@drobilla.net> | 2016-10-01 05:46:29 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2016-10-02 12:24:57 -0400 |
commit | 0f50e9239bbda77ce38f297870f8cf4158025acc (patch) | |
tree | 89e255ade0257ca3f1adf9d1e9d8a81195b45d15 /src/server/events | |
parent | 9b8bce71893ef450992f82a28a6a0287c479baaf (diff) | |
download | ingen-0f50e9239bbda77ce38f297870f8cf4158025acc.tar.gz ingen-0f50e9239bbda77ce38f297870f8cf4158025acc.tar.bz2 ingen-0f50e9239bbda77ce38f297870f8cf4158025acc.zip |
Show audio and load information in status line
Diffstat (limited to 'src/server/events')
-rw-r--r-- | src/server/events/Get.cpp | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/server/events/Get.cpp b/src/server/events/Get.cpp index fa56f23a..bec57104 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-2015 David Robillard <http://drobilla.net/> + Copyright 2007-2016 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 @@ -90,10 +90,14 @@ Get::post_process() } else if (_uri == "ingen:/engine") { // TODO: Keep a proper RDF model of the engine URIs& uris = _engine.world()->uris(); - _request_client->set_property( + _request_client->put( Raul::URI("ingen:/engine"), - uris.param_sampleRate, - uris.forge.make(int32_t(_engine.driver()->sample_rate()))); + { { uris.param_sampleRate, + uris.forge.make(int32_t(_engine.driver()->sample_rate())) }, + { uris.bufsz_maxBlockLength, + uris.forge.make(int32_t(_engine.driver()->block_length())) }, + { uris.ingen_numThreads, + uris.forge.make(int32_t(_engine.n_threads())) } }); } else { _response.send(_request_client.get()); } |