Package de.sciss.eisenkraut.net

Examples of de.sciss.eisenkraut.net.SuperColliderPlayer


  {
    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 );
        }
      }
    }
  }
View Full Code Here


  public void documentAdded( de.sciss.app.DocumentEvent e )
  {
    if( e.getDocument() instanceof Session ) {
      final Session        doc = (Session) e.getDocument();
      final SuperColliderPlayer  p  = superCollider.getPlayerForDocument( doc );
      if( (p != null) && !mapPlayers.containsKey( doc )) {
        lmm.addTaskSync( p.getOutputSync() );
        mapPlayers.put( doc, p );
      }
    }
  }
View Full Code Here

    }
  }

  public void documentRemoved( de.sciss.app.DocumentEvent e )
  {
    final SuperColliderPlayer p  = (SuperColliderPlayer) mapPlayers.remove( e.getDocument() );
    if( p != null ) {
      lmm.removeTaskSync( p.getOutputSync() );
    }
  }
View Full Code Here

TOP

Related Classes of de.sciss.eisenkraut.net.SuperColliderPlayer

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.