summaryrefslogtreecommitdiffstats
path: root/src/PatchagePort.hpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-06-09 00:23:26 +0000
committerDavid Robillard <d@drobilla.net>2011-06-09 00:23:26 +0000
commit91cdc941af88e8ba6e19673eb17825233db2218c (patch)
treefb98fc700eb745a6dee1c8bae0e281e07256965a /src/PatchagePort.hpp
parent69b9029a052e9d9c0d66e4b2fe954f9a6e906a92 (diff)
downloadpatchage-91cdc941af88e8ba6e19673eb17825233db2218c.tar.gz
patchage-91cdc941af88e8ba6e19673eb17825233db2218c.tar.bz2
patchage-91cdc941af88e8ba6e19673eb17825233db2218c.zip
Fix support for multiple instances of alsa clients with the same name (never consider client name an ID).
Remove Alsa specific crap from PatchagePort. Sane implementation of AlsaDriver::refresh. Fix refreshing. Remove useless Jack graph order callback. Fix double add/remove of ports to modules. git-svn-id: http://svn.drobilla.net/lad/trunk/patchage@3374 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/PatchagePort.hpp')
-rw-r--r--src/PatchagePort.hpp22
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