org.qtunes.speaker.spi.justeport
Class AirtunesManager

java.lang.Object
  extended by org.qtunes.speaker.spi.justeport.AirtunesManager

public class AirtunesManager
extends Object

Marshalling service for one or more individual Airports. Protocol details: see http://blog.technologeek.org/airtunes-v2 http://git.zx2c4.com/Airtunes2/about


Constructor Summary
AirtunesManager()
           
 
Method Summary
 void addSpeaker(String name, String host, int port, String password, float gain)
          Add the named speaker to this set
 void clear()
          Clear anything in the packet queue and stop playing immediately
 void drain()
          Drain the queue until all playing has finished
 void removeSpeaker(String name)
          Remove the named Speaker from this set
 void sendAudioPacket(byte[] buf, int off, int len, boolean bigendian)
          Send an audio packet to the speakers
 void setGain(String name, float gain)
          Set the gain for the specified speaker
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AirtunesManager

public AirtunesManager()
Method Detail

addSpeaker

public void addSpeaker(String name,
                       String host,
                       int port,
                       String password,
                       float gain)
                throws IOException
Add the named speaker to this set

Throws:
IOException

removeSpeaker

public void removeSpeaker(String name)
                   throws IOException
Remove the named Speaker from this set

Throws:
IOException

setGain

public void setGain(String name,
                    float gain)
             throws IOException
Set the gain for the specified speaker

Throws:
IOException

sendAudioPacket

public void sendAudioPacket(byte[] buf,
                            int off,
                            int len,
                            boolean bigendian)
                     throws IOException
Send an audio packet to the speakers

Throws:
IOException

clear

public void clear()
           throws IOException
Clear anything in the packet queue and stop playing immediately

Throws:
IOException

drain

public void drain()
           throws IOException
Drain the queue until all playing has finished

Throws:
IOException