|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectquentinc.audio.Clip
quentinc.audio.Sample
public class Sample
A sample is enttirely loaded and stay in memory. It can be played more than once in the same time, and it is fast started. It is designed for short sounds which have to be played often.
| Method Summary | |
|---|---|
void |
close()
Close the clip and release all associated resources. |
float |
getDuration()
Get the duration of this clip in seconds. -1 = not known. |
int |
getDurationInFrames()
Get the duration of this clip in frames. -1 = not known. |
float |
getReferenceDistance()
GEt the reference distance for the sample. |
Sample |
setReferenceDistance(float f)
Set the reference distance for the sample. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public int getDurationInFrames()
Clip
getDurationInFrames in class Clippublic float getDuration()
Clip
getDuration in class Clippublic float getReferenceDistance()
public Sample setReferenceDistance(float f)
public void close()
Clip
close in class Clip
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||