org.fraid.sound.sampled
Class SampledSoundUtils
java.lang.Object
org.fraid.sound.sampled.SampledSoundUtils
public class SampledSoundUtils
- extends java.lang.Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BUFFER_SIZE
public static final int BUFFER_SIZE
- See Also:
- Constant Field Values
SampledSoundUtils
public SampledSoundUtils()
readSoundFile
public static Samples readSoundFile(java.lang.String aFileName,
int aChannelNumber)
throws ComplexFunctionException
- Throws:
ComplexFunctionException
convertBytesToSamples
public static Samples convertBytesToSamples(byte[] aByteData,
javax.sound.sampled.AudioFormat aFormat,
int aChannelNumber)
convertSamplesToBytes
public static byte[] convertSamplesToBytes(Samples aSamples,
int aStartIndex,
int aLength)
readAll
public static byte[] readAll(javax.sound.sampled.AudioInputStream vStream)
throws java.io.IOException
- Throws:
java.io.IOException
getDefaultAudioFormat
public static javax.sound.sampled.AudioFormat getDefaultAudioFormat(int aSampleRate)
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.