Package com.mojang.blaze3d.audio
Class Library
java.lang.Object
com.mojang.blaze3d.audio.Library
- 
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static interface(package private) static classstatic enum - 
Field Summary
FieldsModifier and TypeFieldDescriptionprivate longprivate longprivate static final intprivate Stringprivate static final Library.ChannelPoolprivate final Listener(package private) static final org.slf4j.Loggerprivate static final intprivate Library.ChannelPoolprivate Library.ChannelPoolprivate boolean - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionacquireChannel(Library.Pool p_83698_) voidcleanup()private intstatic Stringbooleanvoidbooleanprivate static longopenDeviceOrFallback(String p_193473_) voidreleaseChannel(Channel p_83696_) private voidsetHrtf(boolean p_242278_) private static OptionalLongtryOpenDevice(String p_193476_)  
- 
Field Details
- 
LOGGER
static final org.slf4j.Logger LOGGER - 
NO_DEVICE
private static final int NO_DEVICE- See Also:
 
 - 
DEFAULT_CHANNEL_COUNT
private static final int DEFAULT_CHANNEL_COUNT- See Also:
 
 - 
currentDevice
private long currentDevice - 
context
private long context - 
supportsDisconnections
private boolean supportsDisconnections - 
defaultDeviceName
 - 
EMPTY
 - 
staticChannels
 - 
streamingChannels
 - 
listener
 
 - 
 - 
Constructor Details
- 
Library
public Library() 
 - 
 - 
Method Details
- 
init
 - 
setHrtf
private void setHrtf(boolean p_242278_)  - 
getChannelCount
private int getChannelCount() - 
getDefaultDeviceName
 - 
getCurrentDeviceName
 - 
hasDefaultDeviceChanged
public boolean hasDefaultDeviceChanged() - 
openDeviceOrFallback
 - 
tryOpenDevice
 - 
cleanup
public void cleanup() - 
getListener
 - 
acquireChannel
 - 
releaseChannel
 - 
getDebugString
 - 
getAvailableSoundDevices
 - 
isCurrentDeviceDisconnected
public boolean isCurrentDeviceDisconnected() 
 -