Package ipsk.audio.plugins
Class EncodingPlugin
- java.lang.Object
-
- ipsk.audio.plugins.EncodingPlugin
-
- All Implemented Interfaces:
AudioPlugin
public class EncodingPlugin extends java.lang.Object implements AudioPlugin
- Author:
- K.Jaensch, klausj@phonetik.uni-muenchen.de
-
-
Field Summary
Fields Modifier and Type Field Description protected javax.sound.sampled.AudioFormat.Encoding
encoding
protected javax.sound.sampled.AudioFormat
inputFormat
protected javax.sound.sampled.AudioFormat
outputFormat
protected javax.sound.sampled.AudioFormat[]
supportedAudioFormats
-
Constructor Summary
Constructors Constructor Description EncodingPlugin(javax.sound.sampled.AudioFormat.Encoding encoding)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.sound.sampled.AudioInputStream
getAudioInputStream(javax.sound.sampled.AudioInputStream source)
javax.sound.sampled.Control[]
getControls()
javax.sound.sampled.AudioFormat
getInputFormat()
javax.sound.sampled.AudioFormat
getOutputFormat()
javax.sound.sampled.AudioFormat[]
getSupportedInputFormats()
javax.sound.sampled.AudioFormat[]
getSupportedOutputFormats(javax.sound.sampled.AudioFormat inputFormat)
boolean
isInputFormatSupported(javax.sound.sampled.AudioFormat audioFormat)
boolean
isOutputFormatSupported(javax.sound.sampled.AudioFormat inputFormat, javax.sound.sampled.AudioFormat outputFormat)
void
setInputFormat(javax.sound.sampled.AudioFormat inputFormat)
void
setOutputFormat(javax.sound.sampled.AudioFormat outputFormat)
-
-
-
Field Detail
-
supportedAudioFormats
protected javax.sound.sampled.AudioFormat[] supportedAudioFormats
-
inputFormat
protected javax.sound.sampled.AudioFormat inputFormat
-
outputFormat
protected javax.sound.sampled.AudioFormat outputFormat
-
encoding
protected javax.sound.sampled.AudioFormat.Encoding encoding
-
-
Method Detail
-
getAudioInputStream
public javax.sound.sampled.AudioInputStream getAudioInputStream(javax.sound.sampled.AudioInputStream source) throws AudioPluginException
- Specified by:
getAudioInputStream
in interfaceAudioPlugin
- Throws:
AudioPluginException
-
getSupportedInputFormats
public javax.sound.sampled.AudioFormat[] getSupportedInputFormats()
- Specified by:
getSupportedInputFormats
in interfaceAudioPlugin
-
getSupportedOutputFormats
public javax.sound.sampled.AudioFormat[] getSupportedOutputFormats(javax.sound.sampled.AudioFormat inputFormat)
- Specified by:
getSupportedOutputFormats
in interfaceAudioPlugin
-
getControls
public javax.sound.sampled.Control[] getControls()
- Specified by:
getControls
in interfaceAudioPlugin
-
isInputFormatSupported
public boolean isInputFormatSupported(javax.sound.sampled.AudioFormat audioFormat)
- Specified by:
isInputFormatSupported
in interfaceAudioPlugin
-
isOutputFormatSupported
public boolean isOutputFormatSupported(javax.sound.sampled.AudioFormat inputFormat, javax.sound.sampled.AudioFormat outputFormat)
- Specified by:
isOutputFormatSupported
in interfaceAudioPlugin
-
setInputFormat
public void setInputFormat(javax.sound.sampled.AudioFormat inputFormat) throws AudioFormatNotSupportedException
- Specified by:
setInputFormat
in interfaceAudioPlugin
- Throws:
AudioFormatNotSupportedException
-
getInputFormat
public javax.sound.sampled.AudioFormat getInputFormat()
- Specified by:
getInputFormat
in interfaceAudioPlugin
-
setOutputFormat
public void setOutputFormat(javax.sound.sampled.AudioFormat outputFormat) throws AudioFormatNotSupportedException
- Specified by:
setOutputFormat
in interfaceAudioPlugin
- Throws:
AudioFormatNotSupportedException
-
getOutputFormat
public javax.sound.sampled.AudioFormat getOutputFormat()
- Specified by:
getOutputFormat
in interfaceAudioPlugin
-
-