org.eclipse.nebula.widgets.oscilloscope
Class OscilloscopeDispatcher.PlayClip

java.lang.Object
  extended by org.eclipse.nebula.widgets.oscilloscope.OscilloscopeDispatcher.PlayClip
Enclosing class:
OscilloscopeDispatcher

public class OscilloscopeDispatcher.PlayClip
extends java.lang.Object

Plays a sound clip.


Constructor Summary
OscilloscopeDispatcher.PlayClip()
           
 
Method Summary
 javax.sound.sampled.Clip getClip()
          Returns the clip so you can control it.
 void playClip(java.io.File file, int loopCount)
          Creates a clip from the passed sound file and plays it.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OscilloscopeDispatcher.PlayClip

public OscilloscopeDispatcher.PlayClip()
Method Detail

getClip

public javax.sound.sampled.Clip getClip()
Returns the clip so you can control it.

Returns:
the Clip

playClip

public void playClip(java.io.File file,
                     int loopCount)
Creates a clip from the passed sound file and plays it. If the clip is currently playing then the method returns, get the clip with getClip() to control it.

Parameters:
file -
loopCount -