uk.org.toot.audio.system
Class MixerConnectedAudioSystem
java.lang.Object
java.util.Observable
uk.org.toot.audio.system.DefaultAudioSystem
uk.org.toot.audio.system.MixerConnectedAudioSystem
- All Implemented Interfaces:
- AudioSystem, ConnectedAudioSystem, IObservable
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.
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 |
MixerConnectedAudioSystem
public MixerConnectedAudioSystem(AudioMixer mixer)
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.