|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.tritonus.saol.engine.Bus
public class Bus
Bus in the SA engine. This interface abstracts the way calculated samples are output from the engine. The engine only calls this interface, while implementations of this interface write the samples to a file, a line, a network socket or whatever else.
Constructor Summary | |
---|---|
Bus(int nWidth)
|
Method Summary | |
---|---|
void |
clear()
Initiate the cumulation of a sample value. |
float[] |
getValues()
|
int |
getWidth()
Gives the width of this bus. |
void |
output(float fSample)
Add the sample value of one instrument. |
void |
output(float[] afSamples)
Add sample values of one instrument. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Bus(int nWidth)
Method Detail |
---|
public int getWidth()
getWidth
in interface Output
public void clear()
clear
in interface Output
public void output(float fSample)
output
in interface Output
public void output(float[] afSamples)
output
in interface Output
public float[] getValues()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |