periodic_connection.disconnect ();
session_connections.drop_connections ();
cueobserver_connections.drop_connections ();
+ Glib::Threads::Mutex::Lock lm (surfaces_lock);
// Delete any active route observers
for (RouteObservers::iterator x = route_observers.begin(); x != route_observers.end();) {
void
OSC::clear_devices ()
{
+ tick = false;
+ Glib::Threads::Mutex::Lock lm (surfaces_lock);
for (RouteObservers::iterator x = route_observers.begin(); x != route_observers.end();) {
OSCRouteObserver* rc;
// clear out surfaces
_surface.clear();
+ tick = true;
}
int
s->send_page_size = se_size;
s->plug_page_size = pi_size;
// set bank and strip feedback
- // set_bank(s->bank, msg);
- recalcbanks ();
+ set_bank(s->bank, msg);
global_feedback (s->feedback, get_address (msg), s->gainmode);
sel_send_pagesize (se_size, msg);
rurl = lo_address_get_url (addr);
r_url = rurl;
free (rurl);
- for (uint32_t it = 0; it < _surface.size(); ++it) {
- //find setup for this server
- if (!_surface[it].remote_url.find(r_url)){
- return &_surface[it];
+ {
+ Glib::Threads::Mutex::Lock lm (surfaces_lock);
+ for (uint32_t it = 0; it < _surface.size(); ++it) {
+ //find setup for this server
+ if (!_surface[it].remote_url.find(r_url)){
+ return &_surface[it];
+ }
}
}
s.plugin_id = 1;
s.nstrips = s.strips.size();
- _surface.push_back (s);
+ {
+ Glib::Threads::Mutex::Lock lm (surfaces_lock);
+ _surface.push_back (s);
+ }
// moved this down here as selection may need s.<anything to do with select> set
if (!_select || (_select != ControlProtocol::first_selected_stripable())) {
gui_selection_changed();
}
// set bank and strip feedback
- //_set_bank(s.bank, addr);
- recalcbanks ();
+ _set_bank(s.bank, addr);
// Set global/master feedback
global_feedback (s.feedback, addr, s.gainmode);
s = _select;
}
float abs;
- int send_id;
+ int send_id = 0;
if (s) {
if (id > 0) {
send_id = id - 1;
s = _select;
}
float abs;
- int send_id;
+ int send_id = 0;
if (s) {
if (id > 0) {
} else {
s = _select;
}
- int send_id;
+ int send_id = 0;
if (s) {
if (id > 0) {
send_id = id - 1;
if (!tick) {
Glib::usleep(100); // let flurry of signals subside
if (global_init) {
+ Glib::Threads::Mutex::Lock lm (surfaces_lock);
for (uint32_t it = 0; it < _surface.size(); it++) {
OSCSurface* sur = &_surface[it];
lo_address addr = lo_address_new_from_url (sur->remote_url.c_str());