as.clynx.audio.mux.streams
Class SequencedStream
java.lang.Object
java.io.InputStream
javax.sound.sampled.AudioInputStream
as.clynx.audio.mux.streams.AudioStream
as.clynx.audio.mux.streams.SequencedStream
- All Implemented Interfaces:
- java.io.Closeable
public class SequencedStream
- extends AudioStream
The class SequencedStream.java extends AudioStream. It switches the
inputstreams sequential through the channels. it is possible to do that in 2
modes.
STATIC MODE: one audioinput is played in all channels for the specified
amount of time followed by the next audioinput. the track is played in
stereo.
DYNAMIC MODE: one audioinput is played in one channel and after an amount of
time its passed to the next channel. because its played only in one channel,
all files are converted to mono in the abstract converter at startup.
- Version:
- cLynx v.1.2, JDK 6.0: 12.10.2007
- Author:
- Andreas Senfter - andreas@senfters.com
Method Summary |
javax.sound.sampled.SourceDataLine |
getSourceDataLine()
returns the source data line |
int |
getTargetBufferSize()
return the targetBuffer. when MODE == SEQUENCE_MODE buffersize =
max_buffered_data * 1 else buffersize = max_buffered_data *
_target_channel_NO |
int |
getType()
returns the type of the mux function |
Methods inherited from class javax.sound.sampled.AudioInputStream |
available, close, getFrameLength, mark, markSupported, read, read, reset, skip |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SequencedStream
public SequencedStream(IAudioFileCollection audiofiles,
int mode,
SettingControl settings)
- Constructor
- Parameters:
audiofiles
- mode
- settings
-
getSourceDataLine
public javax.sound.sampled.SourceDataLine getSourceDataLine()
- Description copied from class:
AudioStream
- returns the source data line
- Overrides:
getSourceDataLine
in class AudioStream
- Returns:
- the source data line
getTargetBufferSize
public int getTargetBufferSize()
- return the targetBuffer. when MODE == SEQUENCE_MODE buffersize =
max_buffered_data * 1 else buffersize = max_buffered_data *
_target_channel_NO
- Specified by:
getTargetBufferSize
in class AudioStream
- Returns:
- the targetBuffer
getType
public int getType()
- Description copied from class:
AudioStream
- returns the type of the mux function
- Specified by:
getType
in class AudioStream
- Returns:
- the type of the mux function