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:
Paul Davis 2015-10-08 21:54:40 -04:00
parent 36088b53b1
commit 8338fd8ac6

View File

@ -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);