public class AudioBuffer extends NativeObject
| Modifier and Type | Field and Description |
|---|---|
protected ByteBuffer |
data |
protected Format |
format |
protected int |
frequency |
INVALID_ID| Constructor and Description |
|---|
AudioBuffer(ByteBuffer data,
int frequency,
Format format) |
| Modifier and Type | Method and Description |
|---|---|
ByteBuffer |
getData() |
Format |
getFormat() |
int |
getFrequency() |
float |
getLengthInSamples() |
float |
getLengthInSeconds() |
static int |
getSampleSize(int bits,
int channels) |
String |
toString() |
getID, setIDprotected ByteBuffer data
protected int frequency
protected Format format
@ConstructorProperties(value={"data","frequency","format"}) @Generated(value="lombok") public AudioBuffer(ByteBuffer data, int frequency, Format format)
public static int getSampleSize(int bits,
int channels)
public float getLengthInSamples()
public float getLengthInSeconds()
@Generated(value="lombok") public ByteBuffer getData()
@Generated(value="lombok") public int getFrequency()
@Generated(value="lombok") public Format getFormat()
Copyright © 2015. All rights reserved.