for (Surfaces::const_iterator si = surfaces.begin(); si != surfaces.end(); ++si) {
(*si)->say_hello ();
}
+
+ if (_device_info.no_handshake()) {
+ for (Surfaces::const_iterator si = surfaces.begin(); si != surfaces.end(); ++si) {
+ (*si)->turn_it_on ();
+ }
+ }
}
// go to the previous track.
void
MackieControlProtocol::initialize()
{
- Glib::Threads::Mutex::Lock lm (surfaces_lock);
-
- if (surfaces.empty()) {
- return;
- }
-
- if (!surfaces.front()->active ()) {
- return;
+ {
+ Glib::Threads::Mutex::Lock lm (surfaces_lock);
+
+ if (surfaces.empty()) {
+ return;
+ }
+
+ if (!surfaces.front()->active ()) {
+ return;
+ }
+
+ // sometimes the jog wheel is a pot
+ if (_device_info.has_jog_wheel()) {
+ surfaces.front()->blank_jog_ring ();
+ }
}
- // sometimes the jog wheel is a pot
- if (_device_info.has_jog_wheel()) {
- surfaces.front()->blank_jog_ring ();
- }
-
// update global buttons and displays
notify_record_state_changed();
control = _fader;
}
-
boost::shared_ptr<AutomationControl> ac = _route->gain_control();
float gain_coefficient = ac->get_value();
float normalized_position = ac->internal_to_interface (gain_coefficient);
-
+
if (force_update || normalized_position != _last_gain_position_written) {
if (_surface->mcp().flip_mode()) {
void next_jog_mode ();
void set_jog_mode (Mackie::JogWheel::Mode);
- void notify_metering_state_changed();
+ void notify_metering_state_changed();
+ void turn_it_on ();
protected:
void init_strips (uint32_t n);
void setup_master ();
void master_gain_changed ();
- void turn_it_on ();
};
}