#include <ardour/timestamps.h>
#include <pbd/error.h>
-#include <pbd/lockmonitor.h>
+#include <glibmm/thread.h>
#include <ardour/ardour.h>
#include <ardour/session.h>
default:
for (Events::iterator i = events.begin(); i != events.end(); ++i) {
if ((*i)->type == ev->type && (*i)->action_frame == ev->action_frame) {
- error << compose(_("Session: cannot have two events of type %1 at the same frame (%2)."),
+ error << string_compose(_("Session: cannot have two events of type %1 at the same frame (%2)."),
event_names[ev->type], ev->action_frame) << endmsg;
return;
}
case Event::PunchIn:
// cerr << "PunchIN at " << transport_frame() << endl;
if (punch_in && record_status() == Enabled) {
- {
- LockMonitor lm (diskstream_lock, __LINE__, __FILE__);
- for (DiskStreamList::iterator i = diskstreams.begin(); i != diskstreams.end(); ++i) {
- (*i)->punch_in();
- }
- }
enable_record ();
}
remove = false;
break;
default:
- fatal << compose(_("Programming error: illegal event type in process_event (%1)"), ev->type) << endmsg;
+ fatal << string_compose(_("Programming error: illegal event type in process_event (%1)"), ev->type) << endmsg;
/*NOTREACHED*/
break;
};