|
The Physiologist's Friend Simulation API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectch.unizh.ini.friend.gui.SpikeSound
public class SpikeSound
Plays a spike sound on the speaker. Use it by constructing a new SpikeSound
, then calling the play()
method.
Field Summary | |
---|---|
static float |
SAMPLE_RATE
sample rate in Hz |
static byte |
SPIKE_AMPLITUDE
amplitude of spike sound. |
static int |
SPIKE_DURATION_MS
duration of spike sound in ms |
Constructor Summary | |
---|---|
SpikeSound()
Creates a new instance of SpikeSound |
Method Summary | |
---|---|
void |
play()
plays the spike sound once. |
void |
play(int leftRight)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int SPIKE_DURATION_MS
public static final float SAMPLE_RATE
public static final byte SPIKE_AMPLITUDE
Constructor Detail |
---|
public SpikeSound()
Method Detail |
---|
public void play()
public void play(int leftRight)
leftRight
- 0 to play left, 1 to play right
|
http://www.ini.unizh.ch/~tobi/friend | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |