diff options
author | David Robillard <d@drobilla.net> | 2010-02-20 21:52:36 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2010-02-20 21:52:36 +0000 |
commit | 46e5de590817756b21a7a5d99bd4963df343f455 (patch) | |
tree | 7d7b3b63297b24d84e5b42cc8aeb22d4212738b5 /src/client/PatchModel.hpp | |
parent | b96a4015ae39b5bdd9afbd82898c0168a0a8e613 (diff) | |
download | ingen-46e5de590817756b21a7a5d99bd4963df343f455.tar.gz ingen-46e5de590817756b21a7a5d99bd4963df343f455.tar.bz2 ingen-46e5de590817756b21a7a5d99bd4963df343f455.zip |
Heavy overhaul of buffer management and polyphony.
* Working polyphony when nodes are instantiated at desired polyphony
level (dynamic still doesn't work)
* Use shared silent buffer for disconnected audio inputs (save memory)
* Eliminate redundant patch compiling on delete and disconnect-all
events that have child events
* Fix a ton of crash bugs and other issues I've since forgotten
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@2468 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/client/PatchModel.hpp')
-rw-r--r-- | src/client/PatchModel.hpp | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/src/client/PatchModel.hpp b/src/client/PatchModel.hpp index d87c4ee8..1590aa10 100644 --- a/src/client/PatchModel.hpp +++ b/src/client/PatchModel.hpp @@ -46,10 +46,11 @@ public: SharedPtr<ConnectionModel> get_connection(const Raul::Path& src_port_path, const Raul::Path& dst_port_path) const; - uint32_t poly() const { return _poly; } - uint32_t internal_polyphony() const { return _poly; } - bool enabled() const; - bool polyphonic() const; + //uint32_t poly() const { return _poly; } + bool enabled() const; + bool polyphonic() const; + + uint32_t internal_poly() const; /** "editable" = arranging,connecting,adding,deleting,etc * not editable (control mode) you can just change controllers (performing) @@ -62,8 +63,6 @@ public: } } - virtual Raul::Atom& set_meta_property(const Raul::URI& key, const Raul::Atom& value); - // Signals sigc::signal<void, SharedPtr<NodeModel> > signal_new_node; sigc::signal<void, SharedPtr<NodeModel> > signal_removed_node; @@ -74,10 +73,9 @@ public: private: friend class ClientStore; - PatchModel(const Raul::Path& patch_path, size_t internal_poly) + PatchModel(const Raul::Path& patch_path) : NodeModel("http://drobilla.net/ns/ingen#Patch", patch_path) , _connections(new Connections()) - , _poly(internal_poly) , _editable(true) { } @@ -90,7 +88,6 @@ private: void remove_connection(const Raul::Path& src_port_path, const Raul::Path& dst_port_path); SharedPtr<Connections> _connections; - uint32_t _poly; bool _editable; }; |