as.clynx.audio.enc
Class AbstractDecoder

java.lang.Object
  extended by as.clynx.audio.enc.AbstractDecoder
Direct Known Subclasses:
PCM_Decoder

public abstract class AbstractDecoder
extends java.lang.Object

The class AbstractDecoder.java specifies the encoding of all inputdatas. all audiofiles are converted into the specified format before further anaysis, normalization and multiplexing takes place.

Version:
cLynx v.1.2, JDK 6.0: 12.10.2007
Author:
Andreas Senfter - andreas@senfters.com

Field Summary
static int _11025Hz
           
static int _22050Hz
           
static int _44100Hz
           
static int MONO
           
static int QUAD
           
static int STEREO
           
 
Constructor Summary
AbstractDecoder(javax.sound.sampled.AudioFormat.Encoding encoding, boolean bigEndian, int bitRate, int sampleRate, int channels, SettingControl settings)
          Constructor
 
Method Summary
abstract  javax.sound.sampled.AudioInputStream decode(java.io.File file)
          decodes a file to the specified format. so all imported files have the same format for processing.
 javax.sound.sampled.AudioFormat getDecodedFormat()
          returns the decoded format
 SettingControl getSettings()
          returns the SettingControl
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

QUAD

public static int QUAD

STEREO

public static int STEREO

MONO

public static int MONO

_11025Hz

public static int _11025Hz

_22050Hz

public static int _22050Hz

_44100Hz

public static int _44100Hz
Constructor Detail

AbstractDecoder

public AbstractDecoder(javax.sound.sampled.AudioFormat.Encoding encoding,
                       boolean bigEndian,
                       int bitRate,
                       int sampleRate,
                       int channels,
                       SettingControl settings)
Constructor

Parameters:
encoding -
bigEndian -
bitRate -
sampleRate -
channels -
settings -
Method Detail

decode

public abstract javax.sound.sampled.AudioInputStream decode(java.io.File file)
                                                     throws javax.sound.sampled.UnsupportedAudioFileException,
                                                            java.io.IOException
decodes a file to the specified format. so all imported files have the same format for processing.

Parameters:
file -
Returns:
the decoded AudioStream
Throws:
javax.sound.sampled.UnsupportedAudioFileException
java.io.IOException

getDecodedFormat

public javax.sound.sampled.AudioFormat getDecodedFormat()
returns the decoded format

Returns:
the decoded format

getSettings

public SettingControl getSettings()
returns the SettingControl

Returns:
the SettingControl