|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.groovemanager.sampled.nondestructive.AbstractSource
com.groovemanager.sampled.nondestructive.ConcatSource
This class represents a CutListSource that is created out of some given CutListSources by concatenating them
| Field Summary | |
|---|---|
private CutListSource[] |
sources
The sources to concatenate |
| Constructor Summary | |
|---|---|
ConcatSource(CutListSource[] sources)
Create a new ConcatSource out of the given sources |
|
| Method Summary | |
|---|---|
CutListSource |
duplicate()
Create a new CutListSource that represents the same data, but is independent of changes made to this source |
javax.sound.sampled.AudioInputStream |
getAudioInputStream(int start,
int length)
Get an AudioInputStream from this source |
protected int |
getIndex(int pos)
Get the index in the source Array for the CutListSource at the given frame position |
int |
getLength()
Get the total length of this source in sample frames |
WaveForm |
getWaveForm(int start,
int length,
int width)
Get a WaveForm from this source |
boolean |
isReady()
Ask this source, if it is ready for providing audio data |
void |
replaceFile(java.io.File from,
java.io.File to)
Replace all references to the given source file inside this CutListSource with references to the given target file. |
boolean |
usesFile(java.io.File f)
Ask this CutListSource whether it relies on the contents of the given file. |
| Methods inherited from class com.groovemanager.sampled.nondestructive.AbstractSource |
|---|
addModificationListener, notifyListeners, removeModificationListener |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private CutListSource[] sources
| Constructor Detail |
|---|
public ConcatSource(CutListSource[] sources)
sources - The CutListSources to concatenate| Method Detail |
|---|
public CutListSource duplicate()
CutListSource
CutListSource.duplicate()
public javax.sound.sampled.AudioInputStream getAudioInputStream(int start,
int length)
throws NotReadyException
CutListSource
start - The start position of the stream in sample frameslength - The length of the stream in sample frames
start
of this source with the length of length sample frames.
NotReadyException - If the audio data can not be providedCutListSource.getAudioInputStream(int, int)protected int getIndex(int pos)
pos - The frame position in question
public int getLength()
CutListSource
CutListSource.getLength()
public WaveForm getWaveForm(int start,
int length,
int width)
CutListSource
start - The start position of the WaveForm in sample frameslength - The length of the audio data represented by the WaveForm
in sample frameswidth - The width in which the WaveForm should be displayed
start
of this source representing length sample frames with the
width of width.CutListSource.getWaveForm(int, int, int)public boolean isReady()
CutListSource
CutListSource.isReady()
public void replaceFile(java.io.File from,
java.io.File to)
CutListSource
from - The source file to replaceto - The target file to replace withCutListSource.replaceFile(java.io.File, java.io.File)public boolean usesFile(java.io.File f)
CutListSource
f - The file to ask for
CutListSource.usesFile(java.io.File)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||