|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.groovemanager.sampled.nondestructive.AbstractElement
com.groovemanager.sampled.nondestructive.ReplaceElement
A ReplaceElement replaces a specified part of the CutListSource with another CutListSource. It also takes care of format conversion so that the inserted element has the same AudioFormat as the replaced element
| Field Summary | |
|---|---|
private int |
length
Start position of the part to replace in sample frames |
private CutListSource |
newSource
The source to replace the part with |
private int |
start
Start position of the part to replace in sample frames |
private javax.sound.sampled.AudioFormat |
targetFormat
The format into which the resulting AudioInputStreams should all be converted |
| Constructor Summary | |
|---|---|
ReplaceElement(java.lang.String name,
CutListSource newSource,
int start,
int length,
javax.sound.sampled.AudioFormat targetFormat)
Construct a new ReplaceElement |
|
| Method Summary | |
|---|---|
CutListElement |
duplicate()
Create a new CutListElement out of this one that is independent of any changes made to this one. |
CutListSource |
getResult(CutListSource source)
Create a new CutListSource out of the given source including this CutListElementīs modification. |
void |
replaceFile(java.io.File from,
java.io.File to)
Replace all references to the given source file inside this CutListElement with references to the given target file. |
boolean |
usesFile(java.io.File f)
Ask this CutListElement whether it relies on the contents of the given file. |
| Methods inherited from class com.groovemanager.sampled.nondestructive.AbstractElement |
|---|
addModificationListener, getName, 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 newSource
private int start
private javax.sound.sampled.AudioFormat targetFormat
| Constructor Detail |
|---|
public ReplaceElement(java.lang.String name,
CutListSource newSource,
int start,
int length,
javax.sound.sampled.AudioFormat targetFormat)
name - The ReplaceElementīs name. May be the name of an applied
Effect for examplenewSource - The new CutListSource to replace the specified part
withstart - Start position of the part to replace in sample frameslength - Length of the part to replace in sample framestargetFormat - The AudioFormat into which all resulting
AudioInputStreams should be converted| Method Detail |
|---|
public CutListElement duplicate()
CutListElement
CutListElement.duplicate()public CutListSource getResult(CutListSource source)
CutListElement
source - The CutListSource to modify
CutListElement.getResult(com.groovemanager.sampled.nondestructive.CutListSource)
public void replaceFile(java.io.File from,
java.io.File to)
CutListElement
from - The source file to replaceto - The target file to replace withCutListElement.replaceFile(java.io.File, java.io.File)public boolean usesFile(java.io.File f)
CutListElement
f - The file to ask for
CutListElement.usesFile(java.io.File)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||