Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.huguesjohnson.tiamat.audio
Class MidiPlayer

    java.lang.Object
      com.huguesjohnson.tiamat.audio.AudioPlayer
          com.huguesjohnson.tiamat.audio.MidiPlayer

All Implemented Interfaces:
  java.util.EventListener, javax.sound.midi.MetaEventListener

public class MidiPlayer
extends AudioPlayer
implements javax.sound.midi.MetaEventListener

MidiPlayer - plays midi files

Author:
  Hugues Johnson

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)` no loop
`void` | `play(java.lang.String[] paths)` no loop
`void` | `play(java.lang.String[] paths, int loop)` loop back to 1st track after playing all
`void` | `play(java.lang.String path, int loop)` <0=infinite loop
`void` | `stop()` stop playing

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

### MidiPlayer

    public MidiPlayer()

Method Detail

### play

    public void play(java.lang.String path)

  no loop

  Specified by:
    `play` in class `AudioPlayer`

### play

    public void play(java.lang.String path,
                     int loop)

  <0=infinite loop

  Specified by:
    `play` in class `AudioPlayer`

### play

    public void play(java.lang.String[] paths)

  no loop

  Specified by:
    `play` in class `AudioPlayer`

### play

    public void play(java.lang.String[] paths,
                     int loop)

  loop back to 1st track after playing all

  Specified by:
    `play` in class `AudioPlayer`

### stop

    public void stop()

  stop playing

  Specified by:
    `stop` in class `AudioPlayer`

### meta

    public void meta(javax.sound.midi.MetaMessage metaMessage)

  trap meta events

  Specified by:
    `meta` in interface `javax.sound.midi.MetaEventListener`

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD