one.radio
Class AudioPlayer

java.lang.Object
  |
  +--one.world.core.Component
        |
        +--one.radio.AudioPlayer
All Implemented Interfaces:
Serializable

public final class AudioPlayer
extends Component

Using AudioSource and AudioSink, plays either captured audio or audio tuples in a sub-environment specified by <path>.

Usage: AudioPlayer <path>

Imported and Exported Event Handlers

Exported event handlers:

main
The main environment event handler.
source
Accepts AudioMessages.

Imported event handlers:

request
The environment request handler.
sourceControl
Accepts AudioSource.ControlEvents.
sink
Accepts AudioMessages.
sinkControl
Accepts AudioSink.ControlEvents.

Version:
$Revision: 1.6 $
See Also:
Serialized Form

Inner classes inherited from class one.world.core.Component
Component.HandlerReference, Component.Importer
 
Constructor Summary
AudioPlayer(Environment env)
          Create a new instance of AudioPlayer.
 
Method Summary
 ComponentDescriptor getDescriptor()
          Get the component descriptor.
static void init(Environment env, Object closure)
          Initialize an environment with this component.
 
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

AudioPlayer

public AudioPlayer(Environment env)
Create a new instance of AudioPlayer.
Parameters:
env - The environment for the new instance.
Method Detail

getDescriptor

public ComponentDescriptor getDescriptor()
Get the component descriptor.
Overrides:
getDescriptor in class Component
Following copied from class: one.world.core.Component
Returns:
The component descriptor for this component.

init

public static void init(Environment env,
                        Object closure)
                 throws Throwable
Initialize an environment with this component.
Parameters:
env - The environment to initialize.
closure - An array of strings, optionally containing the relative path of an environment from which to play sound tuples. If no path is specified, captured audio will be used instead.


(C) Copyright 2001 UW CSE