@Environment(value=CLIENT) public class StaticSound extends Object
Modifier and Type | Field and Description |
---|---|
private AudioFormat |
format |
private boolean |
hasBuffer |
private ByteBuffer |
sample |
private int |
streamBufferPointer |
Constructor and Description |
---|
StaticSound(ByteBuffer sample,
AudioFormat format) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
(package private) OptionalInt |
getStreamBufferPointer() |
OptionalInt |
takeStreamBufferPointer() |
@Nullable private ByteBuffer sample
private final AudioFormat format
private boolean hasBuffer
private int streamBufferPointer
public StaticSound(ByteBuffer sample, AudioFormat format)
OptionalInt getStreamBufferPointer()
public void close()
public OptionalInt takeStreamBufferPointer()