uk.org.toot.audio.system
Class MixerConnectedAudioSystem

java.lang.Object
  extended by java.util.Observable
      extended by uk.org.toot.audio.system.DefaultAudioSystem
          extended by uk.org.toot.audio.system.MixerConnectedAudioSystem
All Implemented Interfaces:
AudioSystem, ConnectedAudioSystem, IObservable
Direct Known Subclasses:
ProjectAudioSystem

public class MixerConnectedAudioSystem
extends DefaultAudioSystem
implements ConnectedAudioSystem

This class adds a composition of AudioConnections to the composition of AudioDevices. Connection are created and closed automatically without user interaction. When an output port is added a connection is made to a mixer strip. When an output port is removed the connection to the mixer strip is closed. But auto connect should be disabled during snapshot configuration, because connections will be restored somewhere else. Each port may only have a single connection.


Constructor Summary
MixerConnectedAudioSystem(AudioMixer mixer)
           
 
Method Summary
 void createConnection(java.lang.String fromPortName, java.lang.String fromPortLocation, java.lang.String toPortName, int flags)
           
 java.util.List<AudioConnection> getConnections()
           
 void notifyObservers(java.lang.Object obj)
          every added or removed device or port will arrive here
 
Methods inherited from class uk.org.toot.audio.system.DefaultAudioSystem
addAudioDevice, close, getAudioDevices, getAudioInputs, getAudioOutputs, removeAudioDevice, setAutoConnect
 
Methods inherited from class java.util.Observable
addObserver, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface uk.org.toot.audio.system.AudioSystem
addAudioDevice, close, getAudioDevices, getAudioInputs, getAudioOutputs, removeAudioDevice, setAutoConnect
 
Methods inherited from interface uk.org.toot.misc.IObservable
addObserver, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers
 

Constructor Detail

MixerConnectedAudioSystem

public MixerConnectedAudioSystem(AudioMixer mixer)
Method Detail

notifyObservers

public void notifyObservers(java.lang.Object obj)
every added or removed device or port will arrive here

Specified by:
notifyObservers in interface IObservable
Overrides:
notifyObservers in class java.util.Observable

getConnections

public java.util.List<AudioConnection> getConnections()
Specified by:
getConnections in interface ConnectedAudioSystem

createConnection

public void createConnection(java.lang.String fromPortName,
                             java.lang.String fromPortLocation,
                             java.lang.String toPortName,
                             int flags)


Copyright © 2004, 2005, 2006, 2007 Steve Taylor. All Rights Reserved.