Package ipsk.audio.plugins
Class ChannelSelectorPlugin
- java.lang.Object
-
- ipsk.audio.plugins.BasicPCMPlugin
-
- ipsk.audio.plugins.ChannelSelectorPlugin
-
- All Implemented Interfaces:
AudioPlugin
public class ChannelSelectorPlugin extends BasicPCMPlugin
Audio plugin to pick a channel.- Author:
- K.Jaensch, klausj@phonetik.uni-muenchen.de
-
-
Field Summary
-
Fields inherited from class ipsk.audio.plugins.BasicPCMPlugin
inputFormat, outputFormat, supportedAudioFormats
-
-
Constructor Summary
Constructors Constructor Description ChannelSelectorPlugin(int channel)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.sound.sampled.AudioInputStream
getAudioInputStream(javax.sound.sampled.AudioInputStream ais)
javax.sound.sampled.AudioFormat
getOutputFormat(javax.sound.sampled.AudioFormat inputFormat)
int
getSelectedChannel()
javax.sound.sampled.AudioFormat[]
getSupportedOutputFormats(javax.sound.sampled.AudioFormat inputFormat)
boolean
isOutputFormatSupported(javax.sound.sampled.AudioFormat inputFormat, javax.sound.sampled.AudioFormat outputFormat)
void
setOutputFormat(javax.sound.sampled.AudioFormat outputFormat)
void
setSelectedChannel(int selectedChannel)
-
Methods inherited from class ipsk.audio.plugins.BasicPCMPlugin
getControls, getInputFormat, getOutputFormat, getSupportedInputFormats, isInputFormatSupported, setInputFormat
-
-
-
-
Method Detail
-
getSupportedOutputFormats
public javax.sound.sampled.AudioFormat[] getSupportedOutputFormats(javax.sound.sampled.AudioFormat inputFormat)
- Specified by:
getSupportedOutputFormats
in interfaceAudioPlugin
- Overrides:
getSupportedOutputFormats
in classBasicPCMPlugin
-
isOutputFormatSupported
public boolean isOutputFormatSupported(javax.sound.sampled.AudioFormat inputFormat, javax.sound.sampled.AudioFormat outputFormat)
- Specified by:
isOutputFormatSupported
in interfaceAudioPlugin
- Overrides:
isOutputFormatSupported
in classBasicPCMPlugin
-
setOutputFormat
public void setOutputFormat(javax.sound.sampled.AudioFormat outputFormat) throws AudioFormatNotSupportedException
- Specified by:
setOutputFormat
in interfaceAudioPlugin
- Overrides:
setOutputFormat
in classBasicPCMPlugin
- Throws:
AudioFormatNotSupportedException
-
getOutputFormat
public javax.sound.sampled.AudioFormat getOutputFormat(javax.sound.sampled.AudioFormat inputFormat)
-
getAudioInputStream
public javax.sound.sampled.AudioInputStream getAudioInputStream(javax.sound.sampled.AudioInputStream ais) throws AudioPluginException
- Specified by:
getAudioInputStream
in interfaceAudioPlugin
- Specified by:
getAudioInputStream
in classBasicPCMPlugin
- Throws:
AudioPluginException
-
getSelectedChannel
public int getSelectedChannel()
-
setSelectedChannel
public void setSelectedChannel(int selectedChannel)
-
-