org.qtunes.speaker.spi.justeport.javasoundspi
Class AirtunesMixer
java.lang.Object
org.qtunes.speaker.spi.justeport.javasoundspi.AirtunesMixer
- All Implemented Interfaces:
- Line, Mixer
public class AirtunesMixer
- extends Object
- implements Mixer
A Mixer
that represents the Airtunes receiver. Each AirtunesMixer
has exactly one AirtunesLine
as a SourceDataLine
. It can
be created directly, or retrieved from the AirtunesMixerProvider
object. It does not support synchronization.
Nested classes/interfaces inherited from interface javax.sound.sampled.Mixer |
Mixer.Info |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AirtunesMixer
public AirtunesMixer(String host)
- Create a new AirtunesMixer
- Parameters:
host
- the host
AirtunesMixer
public AirtunesMixer(AirtunesInfo host)
- Create a new AirtunesMixer
- Parameters:
host
- the host
getLine
public Line getLine(Line.Info info)
- Specified by:
getLine
in interface Mixer
getMaxLines
public int getMaxLines(Line.Info info)
- Specified by:
getMaxLines
in interface Mixer
getMixerInfo
public Mixer.Info getMixerInfo()
- Specified by:
getMixerInfo
in interface Mixer
getSourceLineInfo
public Line.Info[] getSourceLineInfo()
- Specified by:
getSourceLineInfo
in interface Mixer
getSourceLineInfo
public Line.Info[] getSourceLineInfo(Line.Info info)
- Specified by:
getSourceLineInfo
in interface Mixer
getSourceLines
public Line[] getSourceLines()
- Specified by:
getSourceLines
in interface Mixer
getTargetLineInfo
public Line.Info[] getTargetLineInfo()
- Specified by:
getTargetLineInfo
in interface Mixer
getTargetLineInfo
public Line.Info[] getTargetLineInfo(Line.Info info)
- Specified by:
getTargetLineInfo
in interface Mixer
getTargetLines
public Line[] getTargetLines()
- Specified by:
getTargetLines
in interface Mixer
isLineSupported
public boolean isLineSupported(Line.Info info)
- Specified by:
isLineSupported
in interface Mixer
isSynchronizationSupported
public boolean isSynchronizationSupported(Line[] lines,
boolean maintainsync)
- Specified by:
isSynchronizationSupported
in interface Mixer
synchronize
public void synchronize(Line[] lines,
boolean maintainsync)
- Specified by:
synchronize
in interface Mixer
unsynchronize
public void unsynchronize(Line[] lines)
- Specified by:
unsynchronize
in interface Mixer
open
public void open()
throws LineUnavailableException
- Specified by:
open
in interface Line
- Throws:
LineUnavailableException
close
public void close()
- Specified by:
close
in interface Line
addLineListener
public void addLineListener(LineListener listener)
- Specified by:
addLineListener
in interface Line
removeLineListener
public void removeLineListener(LineListener listener)
- Specified by:
removeLineListener
in interface Line
isControlSupported
public boolean isControlSupported(Control.Type type)
- Specified by:
isControlSupported
in interface Line
getControl
public Control getControl(Control.Type type)
- Specified by:
getControl
in interface Line
getControls
public Control[] getControls()
- Specified by:
getControls
in interface Line
getLineInfo
public Line.Info getLineInfo()
- Specified by:
getLineInfo
in interface Line
isOpen
public boolean isOpen()
- Specified by:
isOpen
in interface Line