as.clynx.audio.mux.streams
Class DistanceStream
java.lang.Object
java.io.InputStream
javax.sound.sampled.AudioInputStream
as.clynx.audio.mux.streams.AudioStream
as.clynx.audio.mux.streams.DistanceStream
- All Implemented Interfaces:
- java.io.Closeable
public class DistanceStream
- extends AudioStream
The class MultiStream.java extends AudioStream. It plays all streams parallel
in al channels. it is possible to do that in 2 modes.
STATIC MODE: all streams are simply played parrallel in all channels.
DYNAMIC MODE: all streams are played parralel in all channels and one stream
is played louder for an amount of time, followed by the next stream.
- 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()
returns the buffersze of the targetBuffer |
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 |
DistanceStream
public DistanceStream(IAudioFileCollection collection,
SettingControl settings)
- Constructor
- Parameters:
collection
- 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()
- Description copied from class:
AudioStream
- returns the buffersze of the targetBuffer
- Specified by:
getTargetBufferSize
in class AudioStream
- Returns:
- the buffersze of 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