Package com.mojang.blaze3d.audio
Class Library
java.lang.Object
com.mojang.blaze3d.audio.Library
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescription(package private) static interface(package private) static classstatic enum
- 
Field SummaryFieldsModifier 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 SummaryConstructors
- 
Method SummaryModifier 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- 
LOGGERstatic final org.slf4j.Logger LOGGER
- 
NO_DEVICEprivate static final int NO_DEVICE- See Also:
 
- 
DEFAULT_CHANNEL_COUNTprivate static final int DEFAULT_CHANNEL_COUNT- See Also:
 
- 
currentDeviceprivate long currentDevice
- 
contextprivate long context
- 
supportsDisconnectionsprivate boolean supportsDisconnections
- 
defaultDeviceName
- 
EMPTY
- 
staticChannels
- 
streamingChannels
- 
listener
 
- 
- 
Constructor Details- 
Librarypublic Library()
 
- 
- 
Method Details- 
init
- 
setHrtfprivate void setHrtf(boolean p_242278_) 
- 
getChannelCountprivate int getChannelCount()
- 
getDefaultDeviceName
- 
getCurrentDeviceName
- 
hasDefaultDeviceChangedpublic boolean hasDefaultDeviceChanged()
- 
openDeviceOrFallback
- 
tryOpenDevice
- 
cleanuppublic void cleanup()
- 
getListener
- 
acquireChannel
- 
releaseChannel
- 
getDebugString
- 
getAvailableSoundDevices
- 
isCurrentDeviceDisconnectedpublic boolean isCurrentDeviceDisconnected()
 
-