From ba2863f012866398efab12b6b3e6a113d5eb60bd Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 15 Dec 2010 00:23:38 +0000 Subject: Fix removal of ALSA duplex ports (remove both corresponding canvas ports). Use simpler (and seemingly less lockup prone) blocking ALSA sequencer event API. Only use a ringbuffer for JACK driver. Reduce memory usage. git-svn-id: http://svn.drobilla.net/lad/trunk/patchage@2690 a436a847-0d15-0410-975c-d299462d15a1 --- src/PortID.hpp | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) (limited to 'src/PortID.hpp') diff --git a/src/PortID.hpp b/src/PortID.hpp index 82a892a..84cc28e 100644 --- a/src/PortID.hpp +++ b/src/PortID.hpp @@ -43,20 +43,18 @@ struct PortID { #ifdef HAVE_ALSA PortID(snd_seq_addr_t addr, bool in) - : type(ALSA_ADDR) { id.alsa_addr = addr; is_input = in; } - - bool is_input; + : type(ALSA_ADDR) { id.alsa_addr = addr; id.is_input = in; } #endif union { #ifdef USE_LIBJACK - struct { - jack_port_id_t jack_id; - int jack_flags; - }; + jack_port_id_t jack_id; #endif #ifdef HAVE_ALSA - snd_seq_addr_t alsa_addr; + struct { + snd_seq_addr_t alsa_addr; + bool is_input : 1; + }; #endif } id; }; -- cgit v1.2.1