org.fraid.sound.sampled
Class FrAidAudioInputStream
java.lang.Object
java.io.InputStream
javax.sound.sampled.AudioInputStream
org.fraid.sound.sampled.FrAidAudioInputStream
- All Implemented Interfaces:
- java.io.Closeable
public class FrAidAudioInputStream
- extends javax.sound.sampled.AudioInputStream
Fields inherited from class javax.sound.sampled.AudioInputStream |
format, frameLength, framePos, frameSize |
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 |
mData
protected byte[] mData
mFormat
protected javax.sound.sampled.AudioFormat mFormat
mCurrentPosition
protected int mCurrentPosition
FrAidAudioInputStream
public FrAidAudioInputStream(Samples aSamples)
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.