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.AudioInputStreamgetAudioInputStream(javax.sound.sampled.AudioInputStream ais)javax.sound.sampled.AudioFormatgetOutputFormat(javax.sound.sampled.AudioFormat inputFormat)intgetSelectedChannel()javax.sound.sampled.AudioFormat[]getSupportedOutputFormats(javax.sound.sampled.AudioFormat inputFormat)booleanisOutputFormatSupported(javax.sound.sampled.AudioFormat inputFormat, javax.sound.sampled.AudioFormat outputFormat)voidsetOutputFormat(javax.sound.sampled.AudioFormat outputFormat)voidsetSelectedChannel(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:
getSupportedOutputFormatsin interfaceAudioPlugin- Overrides:
getSupportedOutputFormatsin classBasicPCMPlugin
-
isOutputFormatSupported
public boolean isOutputFormatSupported(javax.sound.sampled.AudioFormat inputFormat, javax.sound.sampled.AudioFormat outputFormat)- Specified by:
isOutputFormatSupportedin interfaceAudioPlugin- Overrides:
isOutputFormatSupportedin classBasicPCMPlugin
-
setOutputFormat
public void setOutputFormat(javax.sound.sampled.AudioFormat outputFormat) throws AudioFormatNotSupportedException- Specified by:
setOutputFormatin interfaceAudioPlugin- Overrides:
setOutputFormatin 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:
getAudioInputStreamin interfaceAudioPlugin- Specified by:
getAudioInputStreamin classBasicPCMPlugin- Throws:
AudioPluginException
-
getSelectedChannel
public int getSelectedChannel()
-
setSelectedChannel
public void setSelectedChannel(int selectedChannel)
-
-