Class Library
java.lang.Object
com.mojang.blaze3d.audio.Library
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static interfaceprivate static classstatic enum -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate longprivate longprivate Stringprivate static final intprivate static final Library.ChannelPoolprivate final Listenerprivate static final org.slf4j.Loggerstatic final intprivate static final Stringprivate Library.ChannelPoolprivate Library.ChannelPoolprivate boolean -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@Nullable ChannelacquireChannel(Library.Pool pool) voidcleanup()private IntBuffercreateAttributes(org.lwjgl.system.MemoryStack stack, boolean enableHrtf) static DeviceTracker@Nullable Stringprivate intvoidinit(@Nullable String preferredDevice, DeviceList currentDevices, boolean useHrtf) booleanprivate static longopenDeviceOrFallback(@Nullable String preferredDevice, @Nullable String systemDefaultDevice) private static StringqueryDeviceName(long deviceId) voidreleaseChannel(Channel channel) private static OptionalLongtryOpenDevice(@Nullable String name)
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
NO_DEVICE
public static final int NO_DEVICE- See Also:
-
NO_DEVICE_NAME
- See Also:
-
DEFAULT_CHANNEL_COUNT
private static final int DEFAULT_CHANNEL_COUNT- See Also:
-
currentDevice
private long currentDevice -
currentDeviceName
-
context
private long context -
supportsDisconnections
private boolean supportsDisconnections -
EMPTY
-
staticChannels
-
streamingChannels
-
listener
-
-
Constructor Details
-
Library
public Library()
-
-
Method Details
-
init
-
createAttributes
-
getChannelCount
private int getChannelCount() -
currentDeviceName
-
queryDeviceName
-
openDeviceOrFallback
-
tryOpenDevice
-
cleanup
public void cleanup() -
getListener
-
acquireChannel
-
releaseChannel
-
getChannelDebugString
-
isCurrentDeviceDisconnected
public boolean isCurrentDeviceDisconnected() -
createDeviceTracker
-