add DeviceChanged signal to MCP and make surface lock mutable for use in const methods.
Also add nth_surface() API to MackieControlProtocol
This commit is contained in:
parent
36088b53b1
commit
8338fd8ac6
@ -115,7 +115,7 @@ class MackieControlProtocol
|
||||
PlugIn,
|
||||
EQ,
|
||||
Instrument,
|
||||
};
|
||||
};
|
||||
|
||||
enum FlipMode {
|
||||
Normal, /* fader controls primary, vpot controls secondary */
|
||||
@ -132,6 +132,8 @@ class MackieControlProtocol
|
||||
const Mackie::DeviceInfo& device_info() const { return _device_info; }
|
||||
Mackie::DeviceProfile& device_profile() { return _device_profile; }
|
||||
|
||||
PBD::Signal0<void> DeviceChanged;
|
||||
|
||||
void device_ready ();
|
||||
|
||||
int set_active (bool yn);
|
||||
@ -158,10 +160,12 @@ class MackieControlProtocol
|
||||
|
||||
static bool probe();
|
||||
|
||||
Glib::Threads::Mutex surfaces_lock;
|
||||
mutable Glib::Threads::Mutex surfaces_lock;
|
||||
typedef std::list<boost::shared_ptr<Mackie::Surface> > Surfaces;
|
||||
Surfaces surfaces;
|
||||
|
||||
boost::shared_ptr<Mackie::Surface> nth_surface (uint32_t) const;
|
||||
|
||||
std::list<boost::shared_ptr<ARDOUR::Bundle> > bundles ();
|
||||
|
||||
void set_master_on_surface_strip (uint32_t surface, uint32_t strip);
|
||||
|
Loading…
Reference in New Issue
Block a user