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 class
SoundSystem.HandlerImpl
(package private) static interface
SoundSystem.IHandler
static class
SoundSystem.Mode
-
Field Summary
Fields Modifier and Type Field Description private long
context
private long
device
private static SoundSystem.IHandler
EMPTY
private Listener
listener
private static org.apache.logging.log4j.Logger
LOGGER
private SoundSystem.IHandler
staticChannels
private SoundSystem.IHandler
streamingChannels
-
Constructor Summary
Constructors Constructor Description SoundSystem()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description SoundSource
acquireChannel(SoundSystem.Mode p_216403_1_)
void
cleanup()
private int
getChannelCount()
java.lang.String
getDebugString()
Listener
getListener()
void
init()
void
releaseChannel(SoundSource p_216408_1_)
private static long
tryOpenDevice()
-
-
-
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()
-
-