diff options
author | David Robillard <d@drobilla.net> | 2008-05-23 04:30:24 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2008-05-23 04:30:24 +0000 |
commit | 0dbcca14bcbcb3aa7e7c0ae24934463a5973a651 (patch) | |
tree | d85dd8d74e4d5ea5c8b4400255c03adb79cda2c5 /src/libs/engine/LADSPANode.hpp | |
parent | 9cec63d68fef0e9fd5d3ee5b99a080dbd9180a88 (diff) | |
download | ingen-0dbcca14bcbcb3aa7e7c0ae24934463a5973a651.tar.gz ingen-0dbcca14bcbcb3aa7e7c0ae24934463a5973a651.tar.bz2 ingen-0dbcca14bcbcb3aa7e7c0ae24934463a5973a651.zip |
Fix crash when trying to add multiple objects with the same path.
Handle failed jack port registrations more gracefully.
Don't assume all LADSPA plugins have minimum and maximum port range values.
git-svn-id: http://svn.drobilla.net/lad/ingen@1230 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/libs/engine/LADSPANode.hpp')
-rw-r--r-- | src/libs/engine/LADSPANode.hpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/libs/engine/LADSPANode.hpp b/src/libs/engine/LADSPANode.hpp index abadcf9f..53d7ad9e 100644 --- a/src/libs/engine/LADSPANode.hpp +++ b/src/libs/engine/LADSPANode.hpp @@ -20,6 +20,7 @@ #include <string> #include <ladspa.h> +#include <boost/optional.hpp> #include "types.hpp" #include "NodeBase.hpp" #include "PluginImpl.hpp" @@ -57,7 +58,10 @@ public: void set_port_buffer(uint32_t voice, uint32_t port_num, Buffer* buf); protected: - void get_port_limits(unsigned long port_index, Sample& default_value, Sample& lower_bound, Sample& upper_bound); + void get_port_limits(unsigned long port_index, + boost::optional<Sample>& default_value, + boost::optional<Sample>& lower_bound, + boost::optional<Sample>& upper_bound); const LADSPA_Descriptor* _descriptor; Raul::Array<LADSPA_Handle>* _instances; |