as.clynx.audio.enc
Class PCM_Decoder
java.lang.Object
as.clynx.audio.enc.AbstractDecoder
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
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 java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PCM_Decoder
public PCM_Decoder(int bitRate,
int sampleRate,
int channels,
SettingControl settings)
- Constructor
- Parameters:
bitRate
- sampleRate
- channels
- settings
-
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