diff options
author | David Robillard <d@drobilla.net> | 2016-10-01 05:46:29 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2016-10-01 12:25:43 -0400 |
commit | 54e68d7fd35960b8ffae99ad9f48fe65cd213299 (patch) | |
tree | b8d5c5bc6d2f37be29bbab1d46649218d7d63350 /src/server/events/Get.cpp | |
parent | fed7aaf0901e1b26dcc2bbb222f67b11f6b9d291 (diff) | |
download | ingen-54e68d7fd35960b8ffae99ad9f48fe65cd213299.tar.gz ingen-54e68d7fd35960b8ffae99ad9f48fe65cd213299.tar.bz2 ingen-54e68d7fd35960b8ffae99ad9f48fe65cd213299.zip |
Show audio and load information in status line
Diffstat (limited to 'src/server/events/Get.cpp')
-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()); } |