javaclient
Class SoundInterface

java.lang.Object
  extended by javaclient.PlayerDevice
      extended by javaclient.SoundInterface

public class SoundInterface
extends PlayerDevice

The sound interface allows playback of a pre-recorded sound (e.g., on an Amigobot). This interface provides no data.

Version:
Author:
Josh Bers & Radu Bogdan Rusu

Field Summary
 
Fields inherited from class javaclient.PlayerDevice
device, DIFFERENCE_SYNCH_FACTOR, index, is, os, pc, PLAYER_MAX_REQREP_SIZE, PLAYER_STXX, reserved, size, t_sec, t_usec, ts_sec, ts_usec
 
Constructor Summary
SoundInterface(PlayerClient pc, short indexOfDevice)
          Constructor for SoundInterface.
 
Method Summary
 void play(short index)
          Send a play command to the Sound device.
 
Methods inherited from class javaclient.PlayerDevice
getTimeForDataSampled_sec, getTimeForDataSampled_usec, getTimeForDataSampled, getTimeForDataSent_sec, getTimeForDataSent_usec, getTimeForDataSent, handleEARMessage, handleNARMessage, handleResponse, readData, readHeader, sendHeader
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SoundInterface

public SoundInterface(PlayerClient pc,
                      short indexOfDevice)
Constructor for SoundInterface.

Parameters:
pc - a reference to the PlayerClient object
indexOfDevice - the index of the device
Method Detail

play

public void play(short index)
Send a play command to the Sound device.

Parameters:
index - index of sound to be played