|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jsyn.data.SequentialDataCommon
com.jsyn.data.AudioSample
com.jsyn.data.FloatSample
public class FloatSample
Store multi-channel floating point audio data in an interleaved buffer. The values are stored as 32-bit floats.
Constructor Summary | |
---|---|
FloatSample()
|
|
FloatSample(float[] data)
Constructor for mono samples with data. |
|
FloatSample(int numFrames)
Constructor for mono samples. |
|
FloatSample(int numFrames,
int channelsPerFrame)
|
Method Summary | |
---|---|
void |
allocate(int numFrames,
int channelsPerFrame)
|
void |
read(float[] data)
|
void |
read(int startFrame,
float[] data,
int startIndex,
int numFrames)
|
double |
readDouble(int index)
Read a value at the given index. |
void |
write(float[] data)
|
void |
write(int startFrame,
float[] data,
int startIndex,
int numFrames)
|
void |
writeDouble(int index,
double value)
Write a value at the given index. |
Methods inherited from class com.jsyn.data.AudioSample |
---|
getChannelsPerFrame, getFrameRate, getNumFrames, getRateScaler, setFrameRate |
Methods inherited from class com.jsyn.data.SequentialDataCommon |
---|
getReleaseBegin, getReleaseEnd, getSustainBegin, getSustainEnd, setReleaseBegin, setReleaseEnd, setSustainBegin, setSustainEnd |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FloatSample()
public FloatSample(int numFrames)
public FloatSample(float[] data)
public FloatSample(int numFrames, int channelsPerFrame)
Method Detail |
---|
public void allocate(int numFrames, int channelsPerFrame)
allocate
in class AudioSample
public void write(int startFrame, float[] data, int startIndex, int numFrames)
public void read(int startFrame, float[] data, int startIndex, int numFrames)
public void write(float[] data)
public void read(float[] data)
public double readDouble(int index)
SequentialData
readDouble
in interface SequentialData
readDouble
in class SequentialDataCommon
public void writeDouble(int index, double value)
SequentialData
writeDouble
in interface SequentialData
writeDouble
in class SequentialDataCommon
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |