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
| 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 |
AudioPlayer
public AudioPlayer(Environment env)
- Create a new instance of
AudioPlayer.
- Parameters:
env - The environment for the new instance.
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