footfall.players
Class MultiPlayer

java.lang.Object
  extended byfootfall.players.MultiPlayer

public class MultiPlayer
extends java.lang.Object

Sound player with multiple channels for smooth non-blocking playback


Constructor Summary
MultiPlayer()
          Sound player with multiple channels for smooth non-blocking playback
MultiPlayer(int bitRate, int bufSize, int channels)
          Sound player with multiple channels for smooth non-blocking playback
 
Method Summary
 void clear()
          Clear buffer queue
 void play()
          If buffered queue length is large as buffer size minimum, write to next audio channel
 void queue(byte b)
          Enqueue byte value
 void queue(double d)
          Enqueue double value
 void queue(float f)
          Enqueue float value
 void queue(int i)
          Enqueue integer value
 void start()
          Start each channel, ready for audio playback
 void stop()
          Flush all open channels and stop playback
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MultiPlayer

public MultiPlayer()
Sound player with multiple channels for smooth non-blocking playback


MultiPlayer

public MultiPlayer(int bitRate,
                   int bufSize,
                   int channels)
Sound player with multiple channels for smooth non-blocking playback

Parameters:
bitRate - Playback bit rate
bufSize - Buffer size for each write to audio channel
channels - Number of simultaneous channels to open
Method Detail

clear

public void clear()
Clear buffer queue


play

public void play()
If buffered queue length is large as buffer size minimum, write to next audio channel


queue

public void queue(byte b)
Enqueue byte value

Parameters:
b - Amplitude

queue

public void queue(double d)
Enqueue double value

Parameters:
d - Amplitude

queue

public void queue(float f)
Enqueue float value

Parameters:
f - Amplitude

queue

public void queue(int i)
Enqueue integer value

Parameters:
i - Amplitude

start

public void start()
Start each channel, ready for audio playback


stop

public void stop()
Flush all open channels and stop playback