diff options
author | David Robillard <d@drobilla.net> | 2007-07-27 00:26:40 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2007-07-27 00:26:40 +0000 |
commit | 972a3e8476687951e8af4e9c1d4f25014dab1b82 (patch) | |
tree | b20e1827a15a4309679fa68c7f8764e2381bde6b /src/libs/engine/Patch.hpp | |
parent | f36e709b68144191d51959d6a2224cd9c3ad7871 (diff) | |
download | ingen-972a3e8476687951e8af4e9c1d4f25014dab1b82.tar.gz ingen-972a3e8476687951e8af4e9c1d4f25014dab1b82.tar.bz2 ingen-972a3e8476687951e8af4e9c1d4f25014dab1b82.zip |
Use uint32_t for num_ports (and poly), matches LV2 and size_t is excessive on 64-bit.
Remove (linear) sorted assertion from Table, except in unit tests.
git-svn-id: http://svn.drobilla.net/lad/ingen@643 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/libs/engine/Patch.hpp')
-rw-r--r-- | src/libs/engine/Patch.hpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/libs/engine/Patch.hpp b/src/libs/engine/Patch.hpp index 6671d204..0b911541 100644 --- a/src/libs/engine/Patch.hpp +++ b/src/libs/engine/Patch.hpp @@ -45,7 +45,7 @@ class Connection; class Patch : public NodeBase { public: - Patch(const string& name, size_t poly, Patch* parent, SampleRate srate, size_t buffer_size, size_t local_poly); + Patch(const string& name, uint32_t poly, Patch* parent, SampleRate srate, size_t buffer_size, uint32_t local_poly); virtual ~Patch(); void activate(); @@ -66,7 +66,7 @@ public: const Raul::List<Node*>& nodes() const { return _nodes; } const Raul::List<Connection*>& connections() const { return _connections; } - size_t num_ports() const; + uint32_t num_ports() const; Port* create_port(const string& name, DataType type, size_t buffer_size, bool is_output); void add_input(Raul::ListNode<Port*>* port) { _input_ports.push_back(port); } ///< Preprocesser thread @@ -90,12 +90,12 @@ public: void enable() { _process = true; } void disable(); - size_t internal_poly() const { return _internal_poly; } + uint32_t internal_poly() const { return _internal_poly; } private: inline void build_process_order_recursive(Node* n, Raul::Array<Node*>* order) const; - size_t _internal_poly; + uint32_t _internal_poly; Raul::Array<Node*>* _process_order; ///< Accessed in audio thread only Raul::List<Connection*> _connections; ///< Accessed in audio thread only Raul::List<Port*> _input_ports; ///< Accessed in preprocessing thread only |