com.jsyn.util
Class SampleLoader

java.lang.Object
  extended by com.jsyn.util.SampleLoader

public class SampleLoader
extends java.lang.Object

Load a FloatSample from various sources.


Constructor Summary
SampleLoader()
           
 
Method Summary
static FloatSample loadFloatSample(java.io.File fileIn)
          Load a FloatSample from a File object.
static FloatSample loadFloatSample(java.io.InputStream inputStream)
          Load a FloatSample from an InputStream.
static FloatSample loadFloatSample(java.net.URL url)
          Load a FloatSample from a URL..
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SampleLoader

public SampleLoader()
Method Detail

loadFloatSample

public static FloatSample loadFloatSample(java.io.File fileIn)
                                   throws java.io.IOException,
                                          javax.sound.sampled.UnsupportedAudioFileException
Load a FloatSample from a File object.

Throws:
java.io.IOException
javax.sound.sampled.UnsupportedAudioFileException

loadFloatSample

public static FloatSample loadFloatSample(java.io.InputStream inputStream)
                                   throws java.io.IOException,
                                          javax.sound.sampled.UnsupportedAudioFileException
Load a FloatSample from an InputStream. This is handy when loading Resources from a JAR file.

Throws:
java.io.IOException
javax.sound.sampled.UnsupportedAudioFileException

loadFloatSample

public static FloatSample loadFloatSample(java.net.URL url)
                                   throws java.io.IOException,
                                          javax.sound.sampled.UnsupportedAudioFileException
Load a FloatSample from a URL.. This is handy when loading Resources from a website.

Throws:
java.io.IOException
javax.sound.sampled.UnsupportedAudioFileException