summaryrefslogtreecommitdiffstats
path: root/src/server/PatchImpl.hpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-05-23 00:57:57 +0000
committerDavid Robillard <d@drobilla.net>2012-05-23 00:57:57 +0000
commit7ca44cb8800a2800e58fadd0267416224650e08d (patch)
tree10a5a313b1fbf0fdbd9f16cd4ed1d4b8ed89fa74 /src/server/PatchImpl.hpp
parent2777835076e1ee319eaeee0a0b0acaad70931ac5 (diff)
downloadingen-7ca44cb8800a2800e58fadd0267416224650e08d.tar.gz
ingen-7ca44cb8800a2800e58fadd0267416224650e08d.tar.bz2
ingen-7ca44cb8800a2800e58fadd0267416224650e08d.zip
Fix crash when loading polyphonic patches.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@4442 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/server/PatchImpl.hpp')
-rw-r--r--src/server/PatchImpl.hpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/server/PatchImpl.hpp b/src/server/PatchImpl.hpp
index 557f0343..d1b11187 100644
--- a/src/server/PatchImpl.hpp
+++ b/src/server/PatchImpl.hpp
@@ -152,7 +152,8 @@ public:
void enable() { _process = true; }
void disable(ProcessContext& context);
- uint32_t internal_poly() const { return _internal_poly; }
+ uint32_t internal_poly() const { return _poly_pre; }
+ uint32_t internal_poly_process() const { return _poly_process; }
private:
inline void compile_recursive(NodeImpl* n, CompiledPatch* output) const;
@@ -160,7 +161,8 @@ private:
void process_single(ProcessContext& context);
Engine& _engine;
- uint32_t _internal_poly;
+ uint32_t _poly_pre; ///< Pre-process thread only
+ uint32_t _poly_process; ///< Process thread only
CompiledPatch* _compiled_patch; ///< Process thread only
Edges _edges; ///< Pre-process thread only
Ports _inputs; ///< Pre-process thread only