|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.io.InputStream
javax.sound.sampled.AudioInputStream
as.clynx.audio.mux.streams.AudioStream
public abstract class AudioStream
The abstract class AudioStream.java must be extended by all AudioInputStreams with mixerfunction. it reads all audiofiles and mixes the data in specified way.
Field Summary | |
---|---|
static int |
DYNAMIC_MODE
|
static int |
STATIC_MODE
|
Constructor Summary | |
---|---|
AudioStream(IAudioFileCollection audiofiles,
SettingControl settings)
Constructor |
Method Summary | |
---|---|
javax.sound.sampled.AudioFormat |
getFormat()
returns the Audio output Format |
int |
getMode()
returns the mode of the audiostream instance |
SettingControl |
getSettings()
returns the settingcontrol |
javax.sound.sampled.SourceDataLine |
getSourceDataLine()
returns the source data line |
abstract int |
getTargetBufferSize()
returns the buffersze of the targetBuffer |
abstract int |
getType()
returns the type of the mux function |
int |
read(byte[] targetData,
int t_offset,
int nLength)
|
void |
setDurationInSeconds(float d)
sets the duration in seconds [can be done in runtime] |
void |
setFadeTimeInSeconds(float chd)
sets the crossfade time in seconds [can be done in runtime] |
void |
setFadeValue(float fade)
sets the master fade value |
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 |
Field Detail |
---|
public static int DYNAMIC_MODE
public static int STATIC_MODE
Constructor Detail |
---|
public AudioStream(IAudioFileCollection audiofiles, SettingControl settings)
audiofiles
- settings
- Method Detail |
---|
public javax.sound.sampled.AudioFormat getFormat()
getFormat
in class javax.sound.sampled.AudioInputStream
public void setFadeValue(float fade)
fade
- public javax.sound.sampled.SourceDataLine getSourceDataLine()
public int read(byte[] targetData, int t_offset, int nLength) throws java.io.IOException
read
in class javax.sound.sampled.AudioInputStream
java.io.IOException
public abstract int getTargetBufferSize()
public void setDurationInSeconds(float d)
d
- public void setFadeTimeInSeconds(float chd)
chd
- public int getMode()
public abstract int getType()
public SettingControl getSettings()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |