Package net.raphimc.audiomixer.util
Class CircularFloatBuffer
java.lang.Object
net.raphimc.audiomixer.util.CircularFloatBuffer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()intintgetSize()booleanhasSpaceFor(int length) booleanisEmpty()booleanisFull()floatread()voidreadAllSafe(float[] values) voidreadAllSafe(float[] values, float defaultValue) voidreadAllSafe(float[] values, int valuesLength) voidreadAllSafe(float[] values, int valuesLength, float defaultValue) float[]readAllSafe(int size) float[]readAllSafe(int size, float defaultValue) floatreadSafe()floatreadSafe(float defaultValue) voidwrite(float value) voidwriteAll(float[] values) voidwriteAll(float[] values, int valuesLength)
-
Constructor Details
-
CircularFloatBuffer
public CircularFloatBuffer(int capacity)
-
-
Method Details
-
write
public void write(float value) -
writeAll
public void writeAll(float[] values) -
writeAll
public void writeAll(float[] values, int valuesLength) -
read
public float read() -
readSafe
public float readSafe() -
readSafe
public float readSafe(float defaultValue) -
readAllSafe
public float[] readAllSafe(int size) -
readAllSafe
public float[] readAllSafe(int size, float defaultValue) -
readAllSafe
public void readAllSafe(float[] values) -
readAllSafe
public void readAllSafe(float[] values, float defaultValue) -
readAllSafe
public void readAllSafe(float[] values, int valuesLength) -
readAllSafe
public void readAllSafe(float[] values, int valuesLength, float defaultValue) -
clear
public void clear() -
hasSpaceFor
public boolean hasSpaceFor(int length) -
isEmpty
public boolean isEmpty() -
isFull
public boolean isFull() -
getSize
public int getSize() -
getCapacity
public int getCapacity()
-