|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.huguesjohnson.tiamat.audio.AudioPlayer
com.huguesjohnson.tiamat.audio.MidiPlayer
public class MidiPlayer
MidiPlayer - plays midi files
Field Summary |
---|
Fields inherited from class com.huguesjohnson.tiamat.audio.AudioPlayer |
---|
INFINITE_LOOP, loop, trackIndex, trackList |
Constructor Summary | |
---|---|
MidiPlayer()
|
Method Summary | |
---|---|
void |
meta(javax.sound.midi.MetaMessage metaMessage)
Trap meta events. |
void |
play(java.lang.String path)
Play with no loop. |
void |
play(java.lang.String[] paths)
Play with no loop. |
void |
play(java.lang.String[] paths,
int loop)
Play with looping, loops back to the first track after playing the last one. |
void |
play(java.lang.String path,
int loop)
Play with looping. |
void |
stop()
Stops playback. |
Methods inherited from class com.huguesjohnson.tiamat.audio.AudioPlayer |
---|
toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public MidiPlayer()
Method Detail |
---|
public void play(java.lang.String path)
AudioPlayer
play
in class AudioPlayer
path
- The path of the audio file to play.public void play(java.lang.String path, int loop)
AudioPlayer
play
in class AudioPlayer
path
- The path of the audio file to play.loop
- The number of times to loop, if loop <0 the infinite loop.public void play(java.lang.String[] paths)
AudioPlayer
play
in class AudioPlayer
paths
- The paths of the audio files to play.public void play(java.lang.String[] paths, int loop)
AudioPlayer
play
in class AudioPlayer
paths
- The paths of the audio files to play.loop
- The number of times to loop, if loop <0 the infinite loop.public void stop()
AudioPlayer
stop
in class AudioPlayer
public void meta(javax.sound.midi.MetaMessage metaMessage)
meta
in interface javax.sound.midi.MetaEventListener
metaMessage
- I have no idea.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |