|
|||||||||
| 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.SubSource
A SubSource represents a part of another source
| Field Summary | |
|---|---|
private int |
length
Start position in sample frames of the resulting source |
private CutListSource |
source
The original source |
private int |
start
Start position in sample frames of the resulting source |
| Constructor Summary | |
|---|---|
SubSource(CutListSource source,
int start,
int length)
Construct a new SubSource out of the given source |
|
| 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 |
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 int length
private CutListSource source
private int start
| Constructor Detail |
|---|
public SubSource(CutListSource source,
int start,
int length)
source - The original sourcestart - Start position of the resulting source in sample frameslength - Length of the resulting source in sample frames| 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)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 | ||||||||