|
|||||||||
| 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.ConvertedSource
This CutListSource is being constructed out of a given CutListSource and a target AudioFormat. When queried for an AudioInputStream, this source will try to provide a stream in this format out of the source´s stream by converting the stream if needed
| Field Summary | |
|---|---|
(package private) CutListSource |
source
The source to get the unconverted stream from |
(package private) javax.sound.sampled.AudioFormat |
targetFormat
The desired target AudioFormat |
| Constructor Summary | |
|---|---|
ConvertedSource(CutListSource source,
javax.sound.sampled.AudioFormat targetFormat)
Construct a new ConvertedSource out of the given CutListSource and AudioFormat |
|
| 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 |
|---|
final CutListSource source
final javax.sound.sampled.AudioFormat targetFormat
| Constructor Detail |
|---|
public ConvertedSource(CutListSource source,
javax.sound.sampled.AudioFormat targetFormat)
source - The CutListSource to get the unconverted stream fromtargetFormat - The AudioFormat into which the stream will be
converted| 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 | ||||||||