* @synchronization this method is to be called in the event thread
*/
protected ProcessingThread initiate( String procName, Span span, AudioFileDescr[] descrs,
int[] channelMap, boolean saveMarkers, boolean asCopy )
{
final ProcessingThread proc;
getTransport().stop();
if( !checkProcess() ) return null;
// pt = new ProcessingThread( this, getFrame(), bird, name, args, Session.DOOR_ALL );
proc = new ProcessingThread( this, getFrame(), procName );
proc.putClientArg( "afds", descrs );
proc.putClientArg( "doc", Session.this );
proc.putClientArg( "asCopy", new Boolean( asCopy ));
proc.putClientArg( "chanMap", channelMap );
proc.putClientArg( "markers", new Boolean( saveMarkers ));
proc.putClientArg( "span", span == null ? new Span( 0, timeline.getLength() ) : span );
return proc;
}