net.minecraft.client.sound

public class SoundEngine

com.mojang.blaze3d.audio.Library
net.minecraft.class_4225
net.minecraft.client.sound.SoundEngine

Field summary

Modifier and TypeField
private static final org.slf4j.Logger
LOGGER
field_18897
LOGGER
private static final int
NO_DEVICE
field_34945
field_34945
private static final int
DEFAULT_CHANNEL_COUNT
field_31897
field_31897
private long
currentDevice
field_18898
devicePointer
private long
context
field_18899
contextPointer
private boolean
supportsDisconnections
field_34946
disconnectExtensionPresent
private String
defaultDeviceName
field_34947
deviceSpecifier
private static final SoundEngine$SourceSet
EMPTY
field_19183
EMPTY_SOURCE_SET
private SoundEngine$SourceSet
staticChannels
field_19184
streamingSources
private SoundEngine$SourceSet
streamingChannels
field_19185
staticSources
private final SoundListener
listener
field_18902
listener

Constructor summary

ModifierConstructor
public ()

Method summary

Modifier and TypeMethod
public void
init(String preferredDevice, boolean useHrtf)
method_19661(String arg0, boolean arg1)
init(String deviceSpecifier, boolean directionalAudio)
private IntBuffer
createAttributes(org.lwjgl.system.MemoryStack stack, boolean enableHrtf)
method_66510(org.lwjgl.system.MemoryStack arg0, boolean arg1)
createAttributes(org.lwjgl.system.MemoryStack stack, boolean directionalAudio)
private int
getChannelCount()
method_20297()
getMonoSourceCount()
public static String
getDefaultDeviceName()
method_38500()
findAvailableDeviceSpecifier()
public String
getCurrentDeviceName()
method_38722()
getCurrentDeviceName()
public synchronized boolean
hasDefaultDeviceChanged()
method_38723()
updateDeviceSpecifier()
private static long
openDeviceOrFallback(String preferredDevice)
method_38501(String arg0)
openDeviceOrFallback(String deviceSpecifier)
private static OptionalLong
tryOpenDevice(String name)
method_20050(String arg0)
openDevice(String deviceSpecifier)
public void
cleanup()
method_19664()
close()
public SoundListener
getListener()
method_19665()
getListener()
public Source
acquireChannel(Library$Pool pool)
method_19663(class_4225$class_4105 arg0)
createSource(SoundEngine$RunMode mode)
public void
releaseChannel(Channel channel)
method_19662(class_4224 arg0)
release(Source source)
public String
getDebugString()
method_20296()
getDebugString()
public List<String>
getAvailableSoundDevices()
method_38502()
getSoundDevices()
public boolean
isCurrentDeviceDisconnected()
method_38724()
isDeviceUnavailable()