|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectddf.minim.MAudioFile
| Field Summary | |
boolean |
doEffects
|
EffectsChain |
effects
|
MAudioBuffer |
left
|
MAudioBuffer |
mix
|
MAudioBuffer |
right
|
| Method Summary | |
void |
cue(int millis)
Sets the position of the file to millis milliseconds from
the beginning. |
boolean |
isLooping()
Returns true if this is currently playing and has more than one loop left to play. |
boolean |
isPlaying()
Returns true if the AudioFile is currently playing. |
int |
length()
Returns the length of the file in milliseconds. |
void |
loop()
Sets the clip to loop continuously. |
void |
loop(int n)
Sets the clip to loop n times. |
void |
pause()
Pauses playback. |
void |
play()
Starts playback from the current position. |
void |
play(int millis)
Starts playback millis from the beginning. |
int |
position()
Returns the current position of the "playhead" in the clip (ie how much of the clip has already been played) |
void |
rewind()
Rewinds the clip to the beginning. |
void |
writeSamples(org.tritonus.share.sampled.FloatSampleBuffer fsb)
Writes samples to fsb. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public EffectsChain effects
public boolean doEffects
public final MAudioBuffer left
public final MAudioBuffer right
public final MAudioBuffer mix
| Method Detail |
public void writeSamples(org.tritonus.share.sampled.FloatSampleBuffer fsb)
LineWriterListenerfsb.
writeSamples in interface LineWriterListenerfsb - the FloatSampleBuffer to write topublic void play()
play in interface Playablepublic void play(int millis)
millis from the beginning.
play in interface Playablemillis - public boolean isPlaying()
isPlaying in interface Playablepublic void pause()
pause in interface Playablepublic void rewind()
rewind in interface Playablepublic void loop()
loop in interface Playablepublic void loop(int n)
n times. If it is already playing,
this will not reset the position to the beginning. If it is not
playing, this will cause the clip to start playing.
loop in interface Playablen - the number of times to looppublic int length()
length in interface Playablepublic int position()
position in interface Playablepublic void cue(int millis)
millis milliseconds from
the beginning. This will not change the playstate of the file. If an error
occurs while trying to cue the file, it will be reported and the file will
be rewound.
cue in interface Playablemillis - public boolean isLooping()
Playable
isLooping in interface Playable
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||