|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jass.engine.Out jass.generators.ConstantLoopBuffer jass.generators.ConstantOneShotBuffer
public class ConstantOneShotBuffer
Play a buffer once
Field Summary |
---|
Fields inherited from class jass.generators.ConstantLoopBuffer |
---|
ix, loopBuffer, loopBufferLength, srate |
Fields inherited from class jass.engine.Out |
---|
buf, bufferSize, bufOld, lock |
Constructor Summary | |
---|---|
ConstantOneShotBuffer(float srate,
int bufferSize,
float[] loopBuffer)
Construct loop force and provide buffer. |
|
ConstantOneShotBuffer(float srate,
int bufferSize,
java.lang.String fn)
Construct loop force from named file. |
Method Summary | |
---|---|
void |
computeBuffer()
Compute the next buffer. |
void |
hit()
Calling this method will cause next call to getBuffer() to start playback of the buffer. |
Methods inherited from class jass.generators.ConstantLoopBuffer |
---|
getLoopBuffer, getSamplingRate |
Methods inherited from class jass.engine.Out |
---|
clearBuffer, copyToOld, getBuffer, getBuffer, getBufferSize, getTime, peekAtBuffer, resetTime, setBufferSize, setTime, setTimeAndNotify |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ConstantOneShotBuffer(float srate, int bufferSize, java.lang.String fn)
srate
- sampling rate in Hertz.bufferSize
- bufferSize of this Out.fn
- Audio file name.public ConstantOneShotBuffer(float srate, int bufferSize, float[] loopBuffer)
srate
- sampling rate in Hertz.bufferSize
- bufferSize of this Out.loopBuffer
- looping buffer.Method Detail |
---|
public void hit()
public void computeBuffer()
computeBuffer
in class ConstantLoopBuffer
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |