Package net.minecraft.client.audio
Class SoundSystem
- java.lang.Object
-
- net.minecraft.client.audio.SoundSystem
-
public class SoundSystem extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static classSoundSystem.HandlerImpl(package private) static interfaceSoundSystem.IHandlerstatic classSoundSystem.Mode
-
Field Summary
Fields Modifier and Type Field Description private longcontextprivate longdeviceprivate static SoundSystem.IHandlerEMPTYprivate Listenerlistenerprivate static org.apache.logging.log4j.LoggerLOGGERprivate SoundSystem.IHandlerstaticChannelsprivate SoundSystem.IHandlerstreamingChannels
-
Constructor Summary
Constructors Constructor Description SoundSystem()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description SoundSourceacquireChannel(SoundSystem.Mode p_216403_1_)voidcleanup()private intgetChannelCount()java.lang.StringgetDebugString()ListenergetListener()voidinit()voidreleaseChannel(SoundSource p_216408_1_)private static longtryOpenDevice()
-
-
-
Field Detail
-
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER
-
device
private long device
-
context
private long context
-
EMPTY
private static final SoundSystem.IHandler EMPTY
-
staticChannels
private SoundSystem.IHandler staticChannels
-
streamingChannels
private SoundSystem.IHandler streamingChannels
-
listener
private final Listener listener
-
-
Method Detail
-
init
public void init()
-
getChannelCount
private int getChannelCount()
-
tryOpenDevice
private static long tryOpenDevice()
-
cleanup
public void cleanup()
-
getListener
public Listener getListener()
-
acquireChannel
@Nullable public SoundSource acquireChannel(SoundSystem.Mode p_216403_1_)
-
releaseChannel
public void releaseChannel(SoundSource p_216408_1_)
-
getDebugString
public java.lang.String getDebugString()
-
-