diff options
Diffstat (limited to 'src/PatchagePort.hpp')
-rw-r--r-- | src/PatchagePort.hpp | 22 |
1 files changed, 2 insertions, 20 deletions
diff --git a/src/PatchagePort.hpp b/src/PatchagePort.hpp index 47c1513..33b6d7e 100644 --- a/src/PatchagePort.hpp +++ b/src/PatchagePort.hpp @@ -30,10 +30,6 @@ #include "PortID.hpp" #include "StateManager.hpp" -#ifdef HAVE_ALSA - #include <alsa/asoundlib.h> -#endif - /** A Port on a PatchageModule */ class PatchagePort : public FlowCanvas::Port @@ -46,31 +42,17 @@ public: uint32_t color) : Port(module, name, is_input, color) , _type(type) - { -#ifdef HAVE_ALSA - _alsa_addr.client = '\0'; - _alsa_addr.port = '\0'; -#endif - } + {} virtual ~PatchagePort() {} -#ifdef HAVE_ALSA - // FIXME: This driver specific crap really needs to go - void alsa_addr(const snd_seq_addr_t addr) { _alsa_addr = addr; } - const snd_seq_addr_t* alsa_addr() const { return (_type == ALSA_MIDI) ? &_alsa_addr : NULL; } -#endif - /** Returns the full name of this port, as "modulename:portname" */ std::string full_name() const { return _module->name() + ":" + _name; } PortType type() const { return _type; } private: -#ifdef HAVE_ALSA - snd_seq_addr_t _alsa_addr; -#endif - PortType _type; + PortType _type; }; #endif // PATCHAGE_PATCHAGEPORT_HPP |