Package net.minecraft.client.audio
Class SoundEngine
java.lang.Object
net.minecraft.client.audio.SoundEngine
-
Field Summary
Modifier and TypeFieldDescriptionprivate final ChannelManager
private final SoundEngineExecutor
private final com.google.common.collect.Multimap<SoundCategory,
ISound> private final Map<ISound,
ChannelManager.Entry> private final SoundSystem
private final Listener
private final List<ISoundEventListener>
private boolean
private static final org.apache.logging.log4j.Logger
private static final org.apache.logging.log4j.Marker
private static final Set<ResourceLocation>
private final GameSettings
private final List<ITickableSound>
private final AudioStreamManager
final SoundHandler
private int
private final List<ITickableSound>
-
Constructor Summary
ConstructorDescriptionSoundEngine
(SoundHandler p_i50892_1_, GameSettings p_i50892_2_, IResourceManager p_i50892_3_) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addEventListener
(ISoundEventListener p_188774_1_) private float
calculatePitch
(ISound p_188772_1_) private float
calculateVolume
(ISound p_188770_1_) void
destroy()
private float
getVolume
(SoundCategory p_188769_1_) boolean
private void
void
pause()
void
void
playDelayed
(ISound p_148599_1_, int p_148599_2_) void
queueTickingSound
(ITickableSound p_229363_1_) void
reload()
void
removeEventListener
(ISoundEventListener p_188773_1_) void
requestPreload
(Sound p_204259_1_) private static boolean
requiresManualLooping
(ISound p_239544_0_) void
resume()
private static boolean
shouldLoopAutomatically
(ISound p_239546_0_) private static boolean
shouldLoopManually
(ISound p_239545_0_) void
void
stop
(ResourceLocation p_195855_1_, SoundCategory p_195855_2_) void
stopAll()
void
tick
(boolean p_217921_1_) private void
void
updateCategoryVolume
(SoundCategory p_188771_1_, float p_188771_2_) void
updateSource
(ActiveRenderInfo p_217920_1_)
-
Field Details
-
MARKER
private static final org.apache.logging.log4j.Marker MARKER -
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER -
ONLY_WARN_ONCE
-
soundManager
-
options
-
loaded
private boolean loaded -
library
-
listener
-
soundBuffers
-
executor
-
channelAccess
-
tickCount
private int tickCount -
instanceToChannel
-
instanceBySource
-
tickingSounds
-
queuedSounds
-
soundDeleteTime
-
listeners
-
queuedTickableSounds
-
preloadQueue
-
-
Constructor Details
-
SoundEngine
public SoundEngine(SoundHandler p_i50892_1_, GameSettings p_i50892_2_, IResourceManager p_i50892_3_)
-
-
Method Details
-
reload
public void reload() -
loadLibrary
private void loadLibrary() -
getVolume
-
updateCategoryVolume
-
destroy
public void destroy() -
stop
-
stopAll
public void stopAll() -
addEventListener
-
removeEventListener
-
tick
public void tick(boolean p_217921_1_) -
tickNonPaused
private void tickNonPaused() -
requiresManualLooping
-
shouldLoopManually
-
shouldLoopAutomatically
-
isActive
-
play
-
queueTickingSound
-
requestPreload
-
calculatePitch
-
calculateVolume
-
pause
public void pause() -
resume
public void resume() -
playDelayed
-
updateSource
-
stop
-
getDebugString
-