net.sf.jack4j.util
Class IntSampleConverter

java.lang.Object
  extended by 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

Constructor Summary
IntSampleConverter()
           
 
Method Summary
abstract  int bytesPerSample()
           
static IntSampleConverter createIntSampleConverter(int bitsPerSample, boolean signed, boolean bigEndian)
           
abstract  void floatToIntSample(float sample, java.nio.ByteBuffer byteBuffer)
           
abstract  float intSampleToFloat(java.nio.ByteBuffer byteBuffer)
           
abstract  boolean isBigEndian()
           
abstract  boolean isSigned()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IntSampleConverter

public IntSampleConverter()
Method Detail

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.