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 AudioPlayer

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

Direct Known Subclasses:
  MidiPlayer

public abstract class AudioPlayer
extends java.lang.Object

AudioPlayer - abstract class for playing audio

Author:
  Hugues Johnson

Field Summary
`static int` | `INFINITE_LOOP`
`protected int` | `loop`
`protected int` | `trackIndex`
`protected java.lang.String[]` | `trackList`

Constructor Summary
`AudioPlayer()`

Method Summary
`abstract void` | `play(java.lang.String path)` no loop
`abstract void` | `play(java.lang.String[] paths)` no loop
`abstract void` | `play(java.lang.String[] paths, int loop)` loop back to 1st track after playing all
`abstract void` | `play(java.lang.String path, int loop)` <0=infinite loop
`abstract void` | `stop()` stop playback
`java.lang.String` | `toString()` returns a string representation of the object

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

Field Detail

### loop

    protected int loop

### trackList

    protected java.lang.String[] trackList

### trackIndex

    protected int trackIndex

### INFINITE_LOOP

    public static final int INFINITE_LOOP

See Also:
  Constant Field Values

Constructor Detail

### AudioPlayer

    public AudioPlayer()

Method Detail

### play

    public abstract void play(java.lang.String path)

  no loop

### play

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

  <0=infinite loop

### play

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

  no loop

### play

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

  loop back to 1st track after playing all

### stop

    public abstract void stop()

  stop playback

### toString

    public java.lang.String toString()

  returns a string representation of the object

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