org.jdesktop.wonderland.client.utils
Class AudioResource

java.lang.Object
  extended by org.jdesktop.wonderland.client.utils.AudioResource

public class AudioResource
extends java.lang.Object

Encapsulate a URL that identifies an audio resource. Only provides the ability to play. TODO: consider adding stop() and refactor internal state

Author:
Bernard Horan

Constructor Summary
AudioResource(java.net.URL resourceURL)
          Create a new audio resource from a URL.
 
Method Summary
 void play()
          Play the audio resource
 void setVolume(float volume)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AudioResource

public AudioResource(java.net.URL resourceURL)
Create a new audio resource from a URL. If the URL is inaccessible the play() method will report an exception.

Parameters:
resourceURL - the URL that identifies the audio resource.
Method Detail

play

public void play()
Play the audio resource


setVolume

public void setVolume(float volume)


Open Wonderland - http://openwonderland.org