| 31 | int SaffirePro40::SaffirePro40EAP::commandToFix(unsigned offset) { |
---|
| 32 | if (offset<0x14) return 2; |
---|
| 33 | if (offset<0x3C && offset>=0x14) return 1; |
---|
| 34 | if (offset<0x5C && offset>=0x54) return 1; |
---|
| 35 | if (offset<0x44 && offset>=0x3C) return 3; |
---|
| 36 | if (offset == 0x5C) return 4; |
---|
| 37 | return 0; |
---|
| 38 | } |
---|
| 39 | FocusriteEAP::Poti* SaffirePro40::SaffirePro40EAP::getMonitorPoti(std::string name) { |
---|
| 40 | return new FocusriteEAP::Poti(this, name, 0x54); |
---|
| 41 | } |
---|
| 42 | FocusriteEAP::Poti* SaffirePro40::SaffirePro40EAP::getDimPoti(std::string name) { |
---|
| 43 | return new FocusriteEAP::Poti(this, name, 0x58); |
---|
| 44 | } |
---|
| 45 | |
---|
| 46 | void SaffirePro40::SaffirePro40EAP::setupSources() { |
---|
| 47 | addSource("SPDIF", 6, 2, eRS_AES); |
---|
| 48 | addSource("ADAT", 0, 8, eRS_ADAT); |
---|
| 49 | addSource("Analog", 0, 8, eRS_InS0); |
---|
| 50 | addSource("Mixer", 0, 16, eRS_Mixer); |
---|
| 51 | addSource("1394", 0, 16, eRS_ARX0); |
---|
| 52 | addSource("Mute", 0, 1, eRS_Muted); |
---|
| 53 | } |
---|
| 54 | void SaffirePro40::SaffirePro40EAP::setupDestinations() { |
---|
| 55 | addDestination("SPDIF", 6, 2, eRD_AES); |
---|
| 56 | addDestination("ADAT", 0, 8, eRD_ADAT); |
---|
| 57 | addDestination("Analog", 0, 8, eRD_InS0); |
---|
| 58 | addDestination("Mixer", 0, 16, eRD_Mixer0); |
---|
| 59 | addDestination("Mixer", 0, 2, eRD_Mixer1, 16); |
---|
| 60 | addDestination("1394", 0, 16, eRD_ATX0); |
---|
| 61 | addDestination("Mute", 0, 1, eRD_Muted); |
---|
| 62 | } |
---|
| 63 | |
---|