From 972a3e8476687951e8af4e9c1d4f25014dab1b82 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Fri, 27 Jul 2007 00:26:40 +0000 Subject: 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 --- src/libs/engine/Patch.hpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/libs/engine/Patch.hpp') 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& nodes() const { return _nodes; } const Raul::List& 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) { _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* order) const; - size_t _internal_poly; + uint32_t _internal_poly; Raul::Array* _process_order; ///< Accessed in audio thread only Raul::List _connections; ///< Accessed in audio thread only Raul::List _input_ports; ///< Accessed in preprocessing thread only -- cgit v1.2.1