marytts.util.data.audio
Class AudioConverterUtils.Stereo2Mono

java.lang.Object
  extended by marytts.util.data.audio.AudioConverterUtils.Stereo2Mono
All Implemented Interfaces:
AudioProcessor
Enclosing class:
AudioConverterUtils

public static class AudioConverterUtils.Stereo2Mono
extends java.lang.Object
implements AudioProcessor


Constructor Summary
AudioConverterUtils.Stereo2Mono()
          Convert a stereo audio input stream to a mono audio input stream, using both channels.
AudioConverterUtils.Stereo2Mono(int mode)
          Convert a stereo audio input stream, using the channels as indicated by mode.
 
Method Summary
 javax.sound.sampled.AudioInputStream apply(javax.sound.sampled.AudioInputStream ais)
          Apply this processor inline on the given audio input stream.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AudioConverterUtils.Stereo2Mono

public AudioConverterUtils.Stereo2Mono()
Convert a stereo audio input stream to a mono audio input stream, using both channels.


AudioConverterUtils.Stereo2Mono

public AudioConverterUtils.Stereo2Mono(int mode)
Convert a stereo audio input stream, using the channels as indicated by mode.

Parameters:
mode - AudioPlayer.LEFT_ONLY, AudioPlayer.RIGHT_ONLY or AudioPlayer.STEREO.
Method Detail

apply

public javax.sound.sampled.AudioInputStream apply(javax.sound.sampled.AudioInputStream ais)
Description copied from interface: AudioProcessor
Apply this processor inline on the given audio input stream. It is expected to work continuously, i.e. it should start providing audio data before having read all input data.

Specified by:
apply in interface AudioProcessor
Returns: