net.sf.jack4j.util
Class IntSampleConverter
java.lang.Object
net.sf.jack4j.util.IntSampleConverter
public abstract class IntSampleConverter
- extends java.lang.Object
Converts samples stored in WAVE file to float
and vice-versa.
- Author:
- repa
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IntSampleConverter
public IntSampleConverter()
createIntSampleConverter
public static IntSampleConverter createIntSampleConverter(int bitsPerSample,
boolean signed,
boolean bigEndian)
bytesPerSample
public abstract int bytesPerSample()
isSigned
public abstract boolean isSigned()
isBigEndian
public abstract boolean isBigEndian()
floatToIntSample
public abstract void floatToIntSample(float sample,
java.nio.ByteBuffer byteBuffer)
intSampleToFloat
public abstract float intSampleToFloat(java.nio.ByteBuffer byteBuffer)
Copyright © 2008 Ondrej Par. All Rights Reserved.