|
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.simulation.AbstractAcceptsInput
ch.unizh.ini.friend.simulation.AbstractMonitor
ch.unizh.ini.friend.simulation.AudioOutput
public class AudioOutput
Plays the output of a ServesOutput
on the speaker,
if the cell being played makes spikes. Every time there is a spike, a buffer holding a spike-like sound is placed on the audio output buffer.
An instance of this class is constructed in SimulationSetupFactory
and made one of the updateables. The user uses the GUI to set
the monitored cell
Field Summary |
---|
Fields inherited from class ch.unizh.ini.friend.simulation.AbstractAcceptsInput |
---|
inputs |
Constructor Summary | |
---|---|
AudioOutput()
Creates a now instance with no current input. |
|
AudioOutput(ServesOutput input)
Creates a new instance with the given input. |
Method Summary | |
---|---|
void |
compute(float dt)
Computes the new state of this component of the simulation. |
protected void |
finalize()
Release the line on finialization. |
boolean |
isMuted()
is audio muted? |
void |
setMuted(boolean f)
sets audio muted. |
Methods inherited from class ch.unizh.ini.friend.simulation.AbstractMonitor |
---|
getInput, getInputs, setInput, setInputs, update |
Methods inherited from class ch.unizh.ini.friend.simulation.AbstractAcceptsInput |
---|
averageInputs, cloneObject, connectOneToAll, connectOneToOne, getCollectionInstance, integrateInputs |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AudioOutput()
public AudioOutput(ServesOutput input)
input
- The input.Method Detail |
---|
public void setMuted(boolean f)
public boolean isMuted()
protected void finalize() throws Throwable
finalize
in class Object
Throwable
public void compute(float dt)
dt
- The time that has passed since the last invocation.
|
http://www.ini.unizh.ch/~tobi/friend | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |