{
if( !EventQueue.isDispatchThread() ) throw new IllegalMonitorStateException();
final DocumentHandler dh = AbstractApplication.getApplication().getDocumentHandler();
Document doc;
SuperColliderPlayer p;
lmm.clearTaskSyncs();
for( int i = 0; i < dh.getDocumentCount(); i++ ) {
doc = dh.getDocument( i );
if( doc instanceof Session ) {
p = superCollider.getPlayerForDocument( (Session) doc );
if( p != null ) {
lmm.addTaskSync( p.getOutputSync() );
mapPlayers.put( doc, p );
}
}
}
}