|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--one.world.core.Component
|
+--one.radio.AudioSender
Multicasts an audio stream generated by an AudioSource to a
one.radio channel. The AudioSource may either capture audio or play
audio tuples from a sub-environment specified by <path>.
Usage: AudioSender [username] [channel] <path>
Imported and Exported Event Handlers
Exported event handlers:
Messages.
Imported event handlers:
AudioSource.ControlEvents.
| Inner classes inherited from class one.world.core.Component |
Component.HandlerReference, Component.Importer |
| Constructor Summary | |
AudioSender(Environment env,
String channel)
Create a new instance of AudioSender. |
|
| Method Summary | |
ComponentDescriptor |
getDescriptor()
Get the component descriptor. |
static void |
init(Environment env,
Object closure)
Initialize an environment with this component. |
protected void |
writeObject(ObjectOutputStream out)
Serialize this audio source. |
| Methods inherited from class one.world.core.Component |
declareExported, declareImported, equals, eventHandlers, getDescriptor, getEnvironment, getLinkedHandlers, getLinkedNumber, getTimer, hasEventHandler, hashCode, isFullyLinked, isLinked, isSealed, link, link, run, seal, unbox, undeclare, unlink, wrap |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public AudioSender(Environment env,
String channel)
AudioSender.env - The environment for the new instance.channel - The channel name.| Method Detail |
protected void writeObject(ObjectOutputStream out)
throws IOException
public ComponentDescriptor getDescriptor()
getDescriptor in class Componentone.world.core.Component
public static void init(Environment env,
Object closure)
throws Throwable
env - The environment to initialize.closure - A string array containing the username,
the name of the channel to send to, and, optionally,
the path of a sub-environment from which to play
audio tuples. If no path is specified, audio will be
captured from the microphone instead.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||