org.fraid.sound.sampled
Class FrAidAudioInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by javax.sound.sampled.AudioInputStream
          extended by org.fraid.sound.sampled.FrAidAudioInputStream
All Implemented Interfaces:
java.io.Closeable

public class FrAidAudioInputStream
extends javax.sound.sampled.AudioInputStream


Field Summary
protected  int mCurrentPosition
           
protected  byte[] mData
           
protected  javax.sound.sampled.AudioFormat mFormat
           
 
Fields inherited from class javax.sound.sampled.AudioInputStream
format, frameLength, framePos, frameSize
 
Constructor Summary
FrAidAudioInputStream(Samples aSamples)
           
 
Method Summary
 int available()
           
 int read()
           
 int read(byte[] aBuffer, int aOffset, int aLength)
           
 
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
 

Field Detail

mData

protected byte[] mData

mFormat

protected javax.sound.sampled.AudioFormat mFormat

mCurrentPosition

protected int mCurrentPosition
Constructor Detail

FrAidAudioInputStream

public FrAidAudioInputStream(Samples aSamples)
Method Detail

available

public int available()
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[] aBuffer,
                int aOffset,
                int aLength)
         throws java.io.IOException
Overrides:
read in class javax.sound.sampled.AudioInputStream
Throws:
java.io.IOException


Fraid (system and language). (C) 2003-2007 Ivaylo Iliev
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.