summaryrefslogtreecommitdiffstats
path: root/src/PortID.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/PortID.hpp')
-rw-r--r--src/PortID.hpp14
1 files changed, 6 insertions, 8 deletions
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;
};