as.clynx.audio.enc
Class PCM_Decoder

java.lang.Object
  extended by as.clynx.audio.enc.AbstractDecoder
      extended by as.clynx.audio.enc.PCM_Decoder

public class PCM_Decoder
extends AbstractDecoder

The class PCM_Decoder.java extends the abstract class AbstarctDecoder. This decoder decodes all inputfiles to PCM_SIGNED Encoding. the BitRate, SampleRate and number of channels are variable and can be specified in the constructor.

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

Field Summary
 
Fields inherited from class as.clynx.audio.enc.AbstractDecoder
_11025Hz, _22050Hz, _44100Hz, MONO, QUAD, STEREO
 
Constructor Summary
PCM_Decoder(int bitRate, int sampleRate, int channels, SettingControl settings)
          Constructor
 
Method Summary
 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.
 
Methods inherited from class as.clynx.audio.enc.AbstractDecoder
getDecodedFormat, getSettings
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PCM_Decoder

public PCM_Decoder(int bitRate,
                   int sampleRate,
                   int channels,
                   SettingControl settings)
Constructor

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

decode

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

Specified by:
decode in class AbstractDecoder
Returns:
the decoded AudioStream
Throws:
javax.sound.sampled.UnsupportedAudioFileException
java.io.IOException