add a channel mask to AudioBackend
This can be used to identify channels not to be used during auto-connect, particularly for livetrax
This commit is contained in:
parent
9839882fb9
commit
49f0a8e16e
@ -338,6 +338,10 @@ public:
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
typedef std::vector<bool> ChannelMask;
|
||||||
|
ChannelMask const & input_channel_mask() const { return _input_channel_mask; }
|
||||||
|
ChannelMask const & output_channel_mask() const { return _output_channel_mask; }
|
||||||
|
|
||||||
/** Returns a collection of float identifying sample rates that are
|
/** Returns a collection of float identifying sample rates that are
|
||||||
* potentially usable with the hardware identified by \p device .
|
* potentially usable with the hardware identified by \p device .
|
||||||
* Any of these values may be supplied in other calls to this backend
|
* Any of these values may be supplied in other calls to this backend
|
||||||
@ -859,6 +863,11 @@ protected:
|
|||||||
AudioEngine& engine;
|
AudioEngine& engine;
|
||||||
|
|
||||||
virtual int _start (bool for_latency_measurement) = 0;
|
virtual int _start (bool for_latency_measurement) = 0;
|
||||||
|
|
||||||
|
void setup_channel_masks (size_t in, size_t out);
|
||||||
|
|
||||||
|
ChannelMask _input_channel_mask;
|
||||||
|
ChannelMask _output_channel_mask;
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace ARDOUR
|
} // namespace ARDOUR
|
||||||
|
@ -111,4 +111,11 @@ AudioBackend::get_standard_device_name (StandardDeviceName device_name)
|
|||||||
return std::string();
|
return std::string();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
AudioBackend::setup_channel_masks (size_t in, size_t out)
|
||||||
|
{
|
||||||
|
_input_channel_mask.assign (in, true);
|
||||||
|
_output_channel_mask.assign (out, true);
|
||||||
|
}
|
||||||
|
|
||||||
} // namespace ARDOUR
|
} // namespace ARDOUR
|
||||||
|
Loading…
Reference in New Issue
Block a user