sound.echo
Class SimpleSoundPlayer

java.lang.Object
  extended by sound.echo.SimpleSoundPlayer

public class SimpleSoundPlayer
extends java.lang.Object


Constructor Summary
SimpleSoundPlayer(java.lang.String filename)
          Opens a sound from a file.
 
Method Summary
 byte[] getSamples()
          Gets the samples of this sound as a byte array.
static void main(java.lang.String[] args)
           
 void play(java.io.InputStream source)
          Plays a stream.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleSoundPlayer

public SimpleSoundPlayer(java.lang.String filename)
Opens a sound from a file.

Method Detail

main

public static void main(java.lang.String[] args)

getSamples

public byte[] getSamples()
Gets the samples of this sound as a byte array.


play

public void play(java.io.InputStream source)
Plays a stream. This method blocks (doesn't return) until the sound is finished playing.