net.minecraft.client.sound

public class StaticSound

com.mojang.blaze3d.audio.SoundBuffer
net.minecraft.class_4231
net.minecraft.client.sound.StaticSound

Field summary

Modifier and TypeField
private ByteBuffer
data
field_18916
sample
private final AudioFormat
format
field_18917
format
private boolean
hasAlBuffer
field_18918
hasBuffer
private int
alBuffer
field_18919
streamBufferPointer
private final int
size
field_1_2138
size

Constructor summary

ModifierConstructor
public (ByteBuffer sample, AudioFormat format)

Method summary

Modifier and TypeMethod
OptionalInt
getAlBuffer()
method_19686()
getStreamBufferPointer()
public void
discardAlBuffer()
method_19687()
close()
public OptionalInt
releaseAlBuffer()
method_19688()
takeStreamBufferPointer()
public AudioFormat
format()
method_1_2576()
getFormat()
public int
size()
method_1_2578()
getSize()
public boolean
isValid()
method_1_2577()
isPresent()