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.Encodingencodingprotected javax.sound.sampled.AudioFormatinputFormatprotected javax.sound.sampled.AudioFormatoutputFormatprotected 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.AudioInputStreamgetAudioInputStream(javax.sound.sampled.AudioInputStream source)javax.sound.sampled.Control[]getControls()javax.sound.sampled.AudioFormatgetInputFormat()javax.sound.sampled.AudioFormatgetOutputFormat()javax.sound.sampled.AudioFormat[]getSupportedInputFormats()javax.sound.sampled.AudioFormat[]getSupportedOutputFormats(javax.sound.sampled.AudioFormat inputFormat)booleanisInputFormatSupported(javax.sound.sampled.AudioFormat audioFormat)booleanisOutputFormatSupported(javax.sound.sampled.AudioFormat inputFormat, javax.sound.sampled.AudioFormat outputFormat)voidsetInputFormat(javax.sound.sampled.AudioFormat inputFormat)voidsetOutputFormat(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:
getAudioInputStreamin interfaceAudioPlugin- Throws:
AudioPluginException
-
getSupportedInputFormats
public javax.sound.sampled.AudioFormat[] getSupportedInputFormats()
- Specified by:
getSupportedInputFormatsin interfaceAudioPlugin
-
getSupportedOutputFormats
public javax.sound.sampled.AudioFormat[] getSupportedOutputFormats(javax.sound.sampled.AudioFormat inputFormat)
- Specified by:
getSupportedOutputFormatsin interfaceAudioPlugin
-
getControls
public javax.sound.sampled.Control[] getControls()
- Specified by:
getControlsin interfaceAudioPlugin
-
isInputFormatSupported
public boolean isInputFormatSupported(javax.sound.sampled.AudioFormat audioFormat)
- Specified by:
isInputFormatSupportedin interfaceAudioPlugin
-
isOutputFormatSupported
public boolean isOutputFormatSupported(javax.sound.sampled.AudioFormat inputFormat, javax.sound.sampled.AudioFormat outputFormat)- Specified by:
isOutputFormatSupportedin interfaceAudioPlugin
-
setInputFormat
public void setInputFormat(javax.sound.sampled.AudioFormat inputFormat) throws AudioFormatNotSupportedException- Specified by:
setInputFormatin interfaceAudioPlugin- Throws:
AudioFormatNotSupportedException
-
getInputFormat
public javax.sound.sampled.AudioFormat getInputFormat()
- Specified by:
getInputFormatin interfaceAudioPlugin
-
setOutputFormat
public void setOutputFormat(javax.sound.sampled.AudioFormat outputFormat) throws AudioFormatNotSupportedException- Specified by:
setOutputFormatin interfaceAudioPlugin- Throws:
AudioFormatNotSupportedException
-
getOutputFormat
public javax.sound.sampled.AudioFormat getOutputFormat()
- Specified by:
getOutputFormatin interfaceAudioPlugin
-
-