com.google.gwt.libideas.resources.client
Interface SoundResource.Handle

Enclosing interface:
SoundResource

public static interface SoundResource.Handle

Represents a sound that is currently playing.


Method Summary
 long getPosition()
          Return the number of milliseconds for which the sound has been playing.
 boolean isComplete()
          Indicates if the sound has finished playing.
 void setPan(int pan)
          Change the panning of the sound after it has been started.
 void setVolume(int volume)
          Change the volume of the sound after it has been started.
 void stop()
          Stop playing the resource.
 

Method Detail

getPosition

long getPosition()
Return the number of milliseconds for which the sound has been playing.


isComplete

boolean isComplete()
Indicates if the sound has finished playing.


setPan

void setPan(int pan)
Change the panning of the sound after it has been started.

Parameters:
pan - A number from -100 (far left) to 100 (far right). Out-of-range values will be coerced into the acceptable range.

setVolume

void setVolume(int volume)
Change the volume of the sound after it has been started.

Parameters:
volume - A number from 0 to 100. Out-of-range values will be coerced into the acceptable range.

stop

void stop()
Stop playing the resource. Calling this method on a Handle that is not currently playing will have no effect.