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
public static final int
NO_DEVICE
field_34945
field_34945
private static final String
NO_DEVICE_NAME
field_1_2018
DEFAULT_DEVICE_SPECIFIER
private static final int
DEFAULT_CHANNEL_COUNT
field_31897
field_31897
private long
currentDevice
field_18898
devicePointer
private String
currentDeviceName
field_34947
deviceSpecifier
private long
context
field_18899
contextPointer
private boolean
supportsDisconnections
field_34946
disconnectExtensionPresent
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, DeviceList currentDevices, boolean useHrtf)
method_19661(String arg0, class_1_355 arg1, boolean arg2)
init(String soundDevice, AudioDeviceInfo audioDeviceInfo, 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 String
currentDeviceName()
method_38722()
getCurrentDeviceName()
private static String
queryDeviceName(long deviceId)
method_1_2464(long arg0)
getDeviceSpecifier(long deviceHandle)
private static long
openDeviceOrFallback(String preferredDevice, String systemDefaultDevice)
method_38501(String arg0, String arg1)
openDeviceOrFallback(String deviceSpecifier, String fallback)
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
getChannelDebugString()
method_20296()
getDebugString()
public boolean
isCurrentDeviceDisconnected()
method_38724()
isDeviceUnavailable()
public static AudioDeviceChangeTracker
createDeviceTracker()
method_1_2463()
createChangeTracker()