as.clynx.audio.enc.tools
Class BitRateConverter
java.lang.Object
as.clynx.audio.enc.tools.BitRateConverter
- All Implemented Interfaces:
- IConverter
public class BitRateConverter
- extends java.lang.Object
- implements IConverter
The class BitRateConverter.java implements IConverter an converts a passed
stream to the defined bitrate.
- Version:
- cLynx v.1.2, JDK 6.0: 12.10.2007
- Author:
- Andreas Senfter - andreas@senfters.com
Constructor Summary |
BitRateConverter(javax.sound.sampled.AudioInputStream sourceStream,
int fTargetBitRate)
Constructor |
Method Summary |
javax.sound.sampled.AudioInputStream |
getTargetStream()
returns the resulted AudioInputStream. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BitRateConverter
public BitRateConverter(javax.sound.sampled.AudioInputStream sourceStream,
int fTargetBitRate)
throws javax.sound.sampled.UnsupportedAudioFileException,
java.io.IOException
- Constructor
- Parameters:
sourceStream
- fTargetBitRate
-
- Throws:
javax.sound.sampled.UnsupportedAudioFileException
java.io.IOException
getTargetStream
public javax.sound.sampled.AudioInputStream getTargetStream()
- returns the resulted AudioInputStream.
- Specified by:
getTargetStream
in interface IConverter
- Returns:
- the resulted AudioInputStream.