|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.sound.sampled.spi.MixerProvider
org.qtunes.speaker.spi.justeport.javasoundspi.AirtunesMixerProvider
public class AirtunesMixerProvider
A MixerProvider
that can be used to access AirtunesMixer
objects via the javax.sound.sampled.spi
approach. Unlike other
mixers, Airtunes receivers are not discovered by the audio system on loading.
Instead the register()
and unregister()
factory methods can be called to manually add or remove Mixers that are discovered.
Constructor Summary | |
---|---|
AirtunesMixerProvider()
|
Method Summary | |
---|---|
Mixer |
getMixer(Mixer.Info info)
Return a new AirtunesMixer that matches the specified
AirtunesInfo . |
Mixer.Info[] |
getMixerInfo()
Return the list of AirtunesInfo objects that have
been manually registered with this class |
static void |
register(AirtunesInfo host)
Register a new Airtunes receiver |
static void |
register(String host)
Register a new Airtunes receiver |
static void |
unregister(AirtunesInfo host)
Deregiser an Airtunes receiver |
static void |
unregister(String host)
Deregister an Airtunes receiver |
Methods inherited from class javax.sound.sampled.spi.MixerProvider |
---|
isMixerSupported |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AirtunesMixerProvider()
Method Detail |
---|
public static void register(String host)
host
- the Airtunes addresspublic static void unregister(String host)
host
- the Airtunes addresspublic static void register(AirtunesInfo host)
host
- the Airtunes addresspublic static void unregister(AirtunesInfo host)
host
- the Airtunes hostpublic Mixer.Info[] getMixerInfo()
AirtunesInfo
objects that have
been manually registered with this class
getMixerInfo
in class MixerProvider
public Mixer getMixer(Mixer.Info info)
AirtunesMixer
that matches the specified
AirtunesInfo
.
getMixer
in class MixerProvider
info
- an AirtunesInfo
object
IllegalArgumentException
- if the parameter is of the wrong type
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |