org.qtunes.speaker.spi.justeport.javasoundspi
Class AirtunesLine
java.lang.Object
org.qtunes.speaker.spi.justeport.javasoundspi.AirtunesLine
- All Implemented Interfaces:
- DataLine, Line, SourceDataLine
public class AirtunesLine
- extends Object
- implements SourceDataLine
A SourceDataLine
that represents the single line to an Airtunes receiver.
This may be created directly, or it may be retrieved from an AirtunesMixer
.
This Line has a single control, FloatControl.Type.MASTER_GAIN
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AirtunesLine
public AirtunesLine(String host)
- Create a new AirtunesLine
- Parameters:
host
- the host
AirtunesLine
public AirtunesLine(AirtunesInfo host)
- Create a new AirtunesLine
- Parameters:
host
- the host
addLineListener
public void addLineListener(LineListener listener)
- Specified by:
addLineListener
in interface Line
removeLineListener
public void removeLineListener(LineListener listener)
- Specified by:
removeLineListener
in interface Line
getLineInfo
public Line.Info getLineInfo()
- Specified by:
getLineInfo
in interface Line
isOpen
public boolean isOpen()
- Specified by:
isOpen
in interface Line
open
public void open()
throws LineUnavailableException
- Specified by:
open
in interface Line
- Throws:
LineUnavailableException
open
public void open(AudioFormat format)
throws LineUnavailableException
- Specified by:
open
in interface SourceDataLine
- Throws:
LineUnavailableException
open
public void open(AudioFormat format,
int bufsize)
throws LineUnavailableException
- Specified by:
open
in interface SourceDataLine
- Throws:
LineUnavailableException
close
public void close()
- Specified by:
close
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
isControlSupported
public boolean isControlSupported(Control.Type type)
- Specified by:
isControlSupported
in interface Line
getLevel
public float getLevel()
- Specified by:
getLevel
in interface DataLine
write
public int write(byte[] buf,
int off,
int len)
- Specified by:
write
in interface SourceDataLine
flush
public void flush()
- Specified by:
flush
in interface DataLine
drain
public void drain()
- Specified by:
drain
in interface DataLine
getFormat
public AudioFormat getFormat()
- Specified by:
getFormat
in interface DataLine
available
public int available()
- Specified by:
available
in interface DataLine
getFramePosition
public int getFramePosition()
- Specified by:
getFramePosition
in interface DataLine
getLongFramePosition
public long getLongFramePosition()
- Specified by:
getLongFramePosition
in interface DataLine
getMicrosecondPosition
public long getMicrosecondPosition()
- Specified by:
getMicrosecondPosition
in interface DataLine
isActive
public boolean isActive()
- Specified by:
isActive
in interface DataLine
getBufferSize
public int getBufferSize()
- Specified by:
getBufferSize
in interface DataLine
start
public void start()
- Specified by:
start
in interface DataLine
stop
public void stop()
- Specified by:
stop
in interface DataLine
getDelayMS
public int getDelayMS()
isRunning
public boolean isRunning()
- Specified by:
isRunning
in interface DataLine