35 | | #define MOTU_CTRL_CHANNEL_FADER 0x0001 |
---|
36 | | #define MOTU_CTRL_CHANNEL_PAN 0x0002 |
---|
37 | | #define MOTU_CTRL_CHANNEL_SOLO 0x0004 |
---|
38 | | #define MOTU_CTRL_CHANNEL_MUTE 0x0008 |
---|
39 | | #define MOTU_CTRL_MIX_FADER 0x0100 |
---|
40 | | #define MOTU_CTRL_MIX_MUTE 0x0200 |
---|
41 | | #define MOTU_CTRL_MIX_DEST 0x0400 |
---|
| 35 | #define MOTU_CTRL_CHANNEL_FADER 0x00000001 |
---|
| 36 | #define MOTU_CTRL_CHANNEL_PAN 0x00000002 |
---|
| 37 | #define MOTU_CTRL_CHANNEL_SOLO 0x00000004 |
---|
| 38 | #define MOTU_CTRL_CHANNEL_MUTE 0x00000008 |
---|
| 39 | #define MOTU_CTRL_MIX_FADER 0x00000100 |
---|
| 40 | #define MOTU_CTRL_MIX_MUTE 0x00000200 |
---|
| 41 | #define MOTU_CTRL_MIX_DEST 0x00000400 |
---|
| 42 | |
---|
| 43 | #define MOTU_CTRL_INPUT_LEVEL 0x10000000 |
---|
| 44 | #define MOTU_CTRL_INPUT_BOOST 0x20000000 |
---|
| 53 | |
---|
| 54 | #define MOTU_CTRL_TRAVELER_LINE_INPUT_CTRLS \ |
---|
| 55 | (MOTU_CTRL_INPUT_LEVEL|MOTU_CTRL_INPUT_BOOST) |
---|
| 56 | |
---|
| 57 | #define MOTU_CTRL_MASK_MUTE_VALUE 0x00010000 |
---|
| 58 | #define MOTU_CTRL_MASK_MUTE_SETENABLE 0x01000000 |
---|
| 59 | #define MOTU_CTRL_MASK_SOLO_VALUE 0x00020000 |
---|
| 60 | #define MOTU_CTRL_MASK_SOLO_SETENABLE 0x02000000 |
---|
| 61 | |
---|
| 62 | #define MOTU_CTRL_MASK_ANA5_INPUT_LEVEL 0x00000010 |
---|
| 63 | #define MOTU_CTRL_MASK_ANA6_INPUT_LEVEL 0x00000020 |
---|
| 64 | #define MOTU_CTRL_MASK_ANA7_INPUT_LEVEL 0x00000040 |
---|
| 65 | #define MOTU_CTRL_MASK_ANA8_INPUT_LEVEL 0x00000080 |
---|
| 66 | |
---|
| 67 | #define MOTU_INFO_IS_STREAMING 0x00000001 |
---|
| 68 | #define MOTU_INFO_SAMPLE_RATE 0x00000002 |
---|
| 69 | #define MOTU_INFO_HAS_MIC_INPUTS 0x00000003 |
---|
| 70 | #define MOTU_INFO_HAS_AESEBU_INPUTS 0x00000004 |
---|
| 71 | #define MOTU_INFO_HAS_SPDIF_INPUTS 0x00000005 |
---|
| 84 | }; |
---|
| 85 | |
---|
| 86 | class MotuBinarySwitch |
---|
| 87 | : public MotuDiscreteCtrl |
---|
| 88 | { |
---|
| 89 | public: |
---|
| 90 | MotuBinarySwitch(MotuDevice &parent, unsigned int dev_reg, |
---|
| 91 | unsigned int val_mask, unsigned int setenable_mask); |
---|
| 92 | MotuBinarySwitch(MotuDevice &parent, unsigned int dev_reg, |
---|
| 93 | unsigned int val_mask, unsigned int setenable_mask, |
---|
| 94 | std::string name, std::string label, std::string descr); |
---|
| 95 | |
---|
| 96 | virtual bool setValue(int v); |
---|
| 97 | virtual int getValue(); |
---|
| 98 | |
---|
| 99 | protected: |
---|
| 100 | unsigned int m_value_mask; |
---|
| 101 | unsigned int m_setenable_mask; |
---|
82 | | std::string name, std::string label, std::string descr); |
---|
83 | | |
---|
84 | | virtual bool setValue(int v); |
---|
85 | | virtual int getValue(); |
---|
86 | | }; |
---|
87 | | |
---|
88 | | class ChannelMute |
---|
89 | | : public MotuDiscreteCtrl |
---|
90 | | { |
---|
91 | | public: |
---|
92 | | ChannelMute(MotuDevice &parent, unsigned int dev_reg); |
---|
93 | | ChannelMute(MotuDevice &parent, unsigned int dev_reg, |
---|
94 | | std::string name, std::string label, std::string descr); |
---|
95 | | |
---|
96 | | virtual bool setValue(int v); |
---|
97 | | virtual int getValue(); |
---|
98 | | }; |
---|
99 | | |
---|
100 | | class ChannelSolo |
---|
101 | | : public MotuDiscreteCtrl |
---|
102 | | { |
---|
103 | | public: |
---|
104 | | ChannelSolo(MotuDevice &parent, unsigned int dev_reg); |
---|
105 | | ChannelSolo(MotuDevice &parent, unsigned int dev_reg, |
---|