From 7ca44cb8800a2800e58fadd0267416224650e08d Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 23 May 2012 00:57:57 +0000 Subject: Fix crash when loading polyphonic patches. git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@4442 a436a847-0d15-0410-975c-d299462d15a1 --- src/server/PatchImpl.hpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/server/PatchImpl.hpp') 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 -- cgit v1.2.1