sonification
Class Sonify

java.lang.Object
  extended by java.io.InputStream
      extended by javax.sound.sampled.AudioInputStream
          extended by sonification.Sonify
All Implemented Interfaces:
java.io.Closeable

public class Sonify
extends javax.sound.sampled.AudioInputStream


Field Summary
 
Fields inherited from class javax.sound.sampled.AudioInputStream
format, frameLength, framePos, frameSize
 
Constructor Summary
Sonify(float fAmplitude, javax.sound.sampled.AudioFormat audioFormat, double[][] data)
           
 
Method Summary
 int available()
          Returns the number of bytes that can be read without blocking.
 int read()
           
 int read(byte[] abData, int nOffset, int nLength)
           
 
Methods inherited from class javax.sound.sampled.AudioInputStream
close, getFormat, getFrameLength, mark, markSupported, read, reset, skip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Sonify

public Sonify(float fAmplitude,
              javax.sound.sampled.AudioFormat audioFormat,
              double[][] data)
Method Detail

available

public int available()
Returns the number of bytes that can be read without blocking. Since there is no blocking possible here, we simply try to return the number of bytes available at all. In case the length of the stream is indefinite, we return the highest number that can be represented in an integer. If the length if finite, this length is returned, clipped by the maximum that can be represented.

Overrides:
available in class javax.sound.sampled.AudioInputStream

read

public int read()
         throws java.io.IOException
Overrides:
read in class javax.sound.sampled.AudioInputStream
Throws:
java.io.IOException

read

public int read(byte[] abData,
                int nOffset,
                int nLength)
         throws java.io.IOException
Overrides:
read in class javax.sound.sampled.AudioInputStream
Throws:
java.io.IOException