}
ProcessorStreams ps;
- if (configure_processors (&ps)) {
- error << string_compose (_("Cannot setup auditioner processing flow for %1 channels"),
- _diskstream->n_channels()) << endmsg;
- return;
- }
+ {
+ Glib::Mutex::Lock lm (AudioEngine::instance()->process_lock ());
+
+ if (configure_processors (&ps)) {
+ error << string_compose (_("Cannot setup auditioner processing flow for %1 channels"),
+ _diskstream->n_channels()) << endmsg;
+ return;
+ }
+ }
/* force a panner reset now that we have all channels */
length = the_region->length();
int dir;
- nframes_t offset = the_region->sync_offset (dir);
+ framecnt_t offset = the_region->sync_offset (dir);
/* can't audition from a negative sync point */
}
int
-Auditioner::play_audition (nframes_t nframes)
+Auditioner::play_audition (framecnt_t nframes)
{
bool need_butler = false;
- nframes_t this_nframes;
+ framecnt_t this_nframes;
int ret;
if (g_atomic_int_get (&_auditioning) == 0) {
void
Auditioner::output_changed (IOChange change, void* /*src*/)
{
- if (change & ConnectionsChanged) {
+ if (change.type & IOChange::ConnectionsChanged) {
string phys;
vector<string> connections;
vector<string> outputs;