summaryrefslogtreecommitdiffstats
path: root/src/server/GraphImpl.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/server/GraphImpl.hpp')
-rw-r--r--src/server/GraphImpl.hpp17
1 files changed, 5 insertions, 12 deletions
diff --git a/src/server/GraphImpl.hpp b/src/server/GraphImpl.hpp
index 7352da39..f7d0be32 100644
--- a/src/server/GraphImpl.hpp
+++ b/src/server/GraphImpl.hpp
@@ -19,6 +19,8 @@
#include <cstdlib>
+#include "ingen/ingen.h"
+
#include "BlockImpl.hpp"
#include "CompiledGraph.hpp"
#include "DuplexPort.hpp"
@@ -160,21 +162,12 @@ public:
bool has_arc(const PortImpl* tail, const PortImpl* head) const;
- void set_compiled_graph(CompiledGraph* cp);
+ /** Set a new compiled graph to run, and return the old one. */
+ CompiledGraph* swap_compiled_graph(CompiledGraph* cp) INGEN_WARN_UNUSED_RESULT;
Raul::Array<PortImpl*>* external_ports() { return _ports; }
void external_ports(Raul::Array<PortImpl*>* pa) { _ports = pa; }
- /** Compile the graph into a version suitable for real-time execution.
- *
- * The CompiledGraph is a flat list that the graph will execute in order
- * when its run() method is called. The returned object is newly allocated
- * and owned by the caller. This function is non-realtime and does not
- * affect processing, to take effect the returned object must be installed
- * in the audio thread with set_compiled_graph().
- */
- CompiledGraph* compile();
-
Raul::Array<PortImpl*>* build_ports_array();
/** Whether to run this graph's DSP bits in the audio thread */
@@ -195,7 +188,7 @@ private:
Ports _inputs; ///< Pre-process thread only
Ports _outputs; ///< Pre-process thread only
Blocks _blocks; ///< Pre-process thread only
- bool _process;
+ bool _process; ///< True iff graph is enabled
};
} // namespace Server