org.tritonus.sampled.file
Class AuTool

java.lang.Object
  extended byorg.tritonus.sampled.file.AuTool

public class AuTool
extends Object

Common constants and methods for handling au files.

Author:
Florian Bomers

Field Summary
static int AU_HEADER_MAGIC
           
static int AUDIO_UNKNOWN_SIZE
           
static int DATA_OFFSET
           
static int SND_FORMAT_ADPCM_G721
           
static int SND_FORMAT_ADPCM_G722
           
static int SND_FORMAT_ADPCM_G723_3
           
static int SND_FORMAT_ADPCM_G723_5
           
static int SND_FORMAT_ALAW_8
           
static int SND_FORMAT_DOUBLE
           
static int SND_FORMAT_FLOAT
           
static int SND_FORMAT_LINEAR_16
           
static int SND_FORMAT_LINEAR_24
           
static int SND_FORMAT_LINEAR_32
           
static int SND_FORMAT_LINEAR_8
           
static int SND_FORMAT_MULAW_8
           
static int SND_FORMAT_UNSPECIFIED
           
 
Constructor Summary
AuTool()
           
 
Method Summary
static int getFormatCode(AudioFormat format)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

AU_HEADER_MAGIC

public static final int AU_HEADER_MAGIC
See Also:
Constant Field Values

AUDIO_UNKNOWN_SIZE

public static final int AUDIO_UNKNOWN_SIZE
See Also:
Constant Field Values

DATA_OFFSET

public static final int DATA_OFFSET
See Also:
Constant Field Values

SND_FORMAT_UNSPECIFIED

public static final int SND_FORMAT_UNSPECIFIED
See Also:
Constant Field Values

SND_FORMAT_MULAW_8

public static final int SND_FORMAT_MULAW_8
See Also:
Constant Field Values

SND_FORMAT_LINEAR_8

public static final int SND_FORMAT_LINEAR_8
See Also:
Constant Field Values

SND_FORMAT_LINEAR_16

public static final int SND_FORMAT_LINEAR_16
See Also:
Constant Field Values

SND_FORMAT_LINEAR_24

public static final int SND_FORMAT_LINEAR_24
See Also:
Constant Field Values

SND_FORMAT_LINEAR_32

public static final int SND_FORMAT_LINEAR_32
See Also:
Constant Field Values

SND_FORMAT_FLOAT

public static final int SND_FORMAT_FLOAT
See Also:
Constant Field Values

SND_FORMAT_DOUBLE

public static final int SND_FORMAT_DOUBLE
See Also:
Constant Field Values

SND_FORMAT_ADPCM_G721

public static final int SND_FORMAT_ADPCM_G721
See Also:
Constant Field Values

SND_FORMAT_ADPCM_G722

public static final int SND_FORMAT_ADPCM_G722
See Also:
Constant Field Values

SND_FORMAT_ADPCM_G723_3

public static final int SND_FORMAT_ADPCM_G723_3
See Also:
Constant Field Values

SND_FORMAT_ADPCM_G723_5

public static final int SND_FORMAT_ADPCM_G723_5
See Also:
Constant Field Values

SND_FORMAT_ALAW_8

public static final int SND_FORMAT_ALAW_8
See Also:
Constant Field Values
Constructor Detail

AuTool

public AuTool()
Method Detail

getFormatCode

public static int getFormatCode(AudioFormat format)