net.minecraft.client.sound

public class SoundSystem

net.minecraft.client.sounds.SoundEngine
net.minecraft.class_1140
net.minecraft.client.sound.SoundSystem

Field summary

Modifier and TypeField
private static final org.slf4j.Marker
MARKER
field_5553
MARKER
private static final org.slf4j.Logger
LOGGER
field_5559
LOGGER
private static final float
PITCH_MIN
field_33021
MIN_PITCH
private static final float
PITCH_MAX
field_33022
MAX_PITCH
private static final float
VOLUME_MIN
field_33023
MIN_VOLUME
private static final float
VOLUME_MAX
field_33024
MAX_VOLUME
private static final int
MIN_SOURCE_LIFETIME
field_33025
field_33025
private static final Set<Identifier>
ONLY_WARN_ONCE
field_5561
UNKNOWN_SOUNDS
public static final String
MISSING_SOUND
field_33020
FOR_THE_DEBUG
public static final String
OPEN_AL_SOFT_PREFIX
field_34827
OPENAL_SOFT_ON
public static final int
OPEN_AL_SOFT_PREFIX_LENGTH
field_34828
OPENAL_SOFT_ON_LENGTH
private final SoundManager
soundManager
field_5552
soundManager
private final GameOptions
options
field_5555
options
private boolean
loaded
field_5563
started
private final SoundEngine
library
field_18945
soundEngine
private final SoundListener
listener
field_18946
listener
private final SoundLoader
soundBuffers
field_18947
soundLoader
private final SoundExecutor
executor
field_18948
taskQueue
private final Channel
channelAccess
field_18949
channel
private int
tickCount
field_5550
ticks
private AudioDeviceInfo
lastSeenDevices
field_1_2039
audioDeviceInfo
private final AudioDeviceChangeTracker
deviceTracker
field_1_2038
changeTracker
private final Map<SoundInstance, Channel$SourceManager>
instanceToChannel
field_18950
sources
private final com.google.common.collect.Multimap<SoundCategory, SoundInstance>
instanceBySource
field_18951
sounds
private final it.unimi.dsi.fastutil.objects.Object2FloatMap<SoundCategory>
gainBySource
field_64473
volumes
private final List<TickableSoundInstance>
tickingSounds
field_5557
tickingSounds
private final Map<SoundInstance, Integer>
queuedSounds
field_5566
soundStartTicks
private final Map<SoundInstance, Integer>
soundDeleteTime
field_18952
soundEndTicks
private final List<SoundInstanceListener>
listeners
field_5558
listeners
private final List<TickableSoundInstance>
queuedTickableSounds
field_20532
soundsToPlayNextTick
private final List<Sound>
preloadQueue
field_5551
preloadedSounds

Constructor summary

ModifierConstructor
public (SoundManager soundManager, GameOptions options, ResourceFactory resourceFactory)

Method summary

Modifier and TypeMethod
public void
reload()
method_4837()
reloadSounds()
private synchronized void
loadLibrary()
method_4846()
start()
public void
refreshCategoryVolume(SoundSource source)
method_76566(class_3419 arg0)
refreshSoundVolumes(SoundCategory category)
public void
destroy()
method_4856()
stop()
public void
emergencyShutdown()
method_54648()
stopAbruptly()
public void
stop(SoundInstance soundInstance)
method_19753(class_1113 arg0)
stop(SoundInstance sound)
public void
updateCategoryVolume(SoundSource source, float gain)
method_4844(class_3419 arg0, float arg1)
setVolume(SoundCategory category, float volume)
public void
stopAll()
method_4843()
stopAll()
public void
addEventListener(SoundEventListener listener)
method_4855(class_1145 arg0)
registerListener(SoundInstanceListener listener)
public void
removeEventListener(SoundEventListener listener)
method_4847(class_1145 arg0)
unregisterListener(SoundInstanceListener listener)
private boolean
shouldChangeDevice()
method_38744()
shouldReloadSounds()
public void
tick(boolean paused)
method_20185(boolean arg0)
tick(boolean paused)
private void
tickInGameSound()
method_4857()
tick()
private void
tickMusicWhenPaused()
method_71938()
tickPaused()
private static boolean
requiresManualLooping(SoundInstance instance)
method_24878(class_1113 arg0)
hasRepeatDelay(SoundInstance sound)
private static boolean
shouldLoopManually(SoundInstance instance)
method_24879(class_1113 arg0)
shouldDelayRepeat(SoundInstance sound)
private static boolean
shouldLoopAutomatically(SoundInstance instance)
method_24880(class_1113 arg0)
shouldRepeatInstantly(SoundInstance sound)
public boolean
isActive(SoundInstance instance)
method_4835(class_1113 arg0)
isPlaying(SoundInstance sound)
public SoundSystem$PlayResult
play(SoundInstance instance)
method_4854(class_1113 arg0)
play(SoundInstance sound)
public void
queueTickingSound(TickableSoundInstance tickableSoundInstance)
method_22139(class_1117 arg0)
playNextTick(TickableSoundInstance sound)
public void
requestPreload(Sound sound)
method_4851(class_1111 arg0)
addPreloadedSound(Sound sound)
private float
calculatePitch(SoundInstance instance)
method_4849(class_1113 arg0)
getAdjustedPitch(SoundInstance sound)
private float
calculateVolume(SoundInstance instance)
method_4853(class_1113 arg0)
getAdjustedVolume(SoundInstance sound)
private float
calculateVolume(float volume, SoundSource source)
method_43222(float arg0, class_3419 arg1)
getAdjustedVolume(float volume, SoundCategory category)
public void
pauseAllExcept(SoundSource... ignoredSources)
method_71937(class_3419... arg0)
pauseAllExcept(SoundCategory... categories)
public void
resume()
method_19762()
resumeAll()
public void
playDelayed(SoundInstance instance, int delay)
method_4852(class_1113 arg0, int arg1)
play(SoundInstance sound, int delay)
public void
updateSource(Camera camera)
method_4840(class_4184 arg0)
updateListenerPosition(Camera camera)
public void
stop(Identifier sound, SoundSource source)
method_4838(class_2960 arg0, class_3419 arg1)
stopSounds(Identifier id, SoundCategory category)
public String
getChannelDebugString()
method_20304()
getDebugString()
public void
getSoundCacheDebugStats(SoundBufferLibrary$DebugOutput output)
method_1_2593(class_4237$class_1_387 arg0)
forLoadedSounds(SoundLoader$StatisticsConsumer callback)
public List<String>
getAvailableSoundDevices()
method_38564()
getSoundDevices()
public SoundListenerTransform
getListenerTransform()
method_55592()
getListenerTransform()
private void
lambda$updateSource$0(ListenerTransform arg0)
method_19751(class_9054 arg0)
method_19751(SoundListenerTransform arg0)
private static void
lambda$resume$0(Stream arg0)
method_19759(Stream arg0)
method_19759(Stream sources)
private static void
lambda$play$3(ChannelAccess$ChannelHandle arg0, AudioStream arg1)
method_19758(class_4235$class_4236 arg0, class_4234 arg1)
method_19758(Channel$SourceManager arg0, AudioStream stream)
private static void
lambda$play$4(AudioStream arg0, Channel arg1)
method_19755(class_4234 arg0, class_4224 arg1)
method_19755(AudioStream arg0, Source source)
private static void
lambda$play$1(ChannelAccess$ChannelHandle arg0, SoundBuffer arg1)
method_19757(class_4235$class_4236 arg0, class_4231 arg1)
method_19757(Channel$SourceManager arg0, StaticSound sound)
private static void
lambda$play$2(SoundBuffer arg0, Channel arg1)
method_19752(class_4231 arg0, class_4224 arg1)
method_19752(StaticSound arg0, Source source)
private static void
lambda$play$0(float arg0, float arg1, SoundInstance$Attenuation arg2, float arg3, boolean arg4, boolean arg5, Vec3 arg6, boolean arg7, Channel arg8)
method_19749(float arg0, float arg1, class_1113$class_1114 arg2, float arg3, boolean arg4, boolean arg5, class_243 arg6, boolean arg7, class_4224 arg8)
method_19749(float arg0, float arg1, SoundInstance$AttenuationType arg2, float arg3, boolean arg4, boolean arg5, Vec3d arg6, boolean arg7, Source source)
private static void
lambda$tickInGameSound$0(float arg0, float arg1, Vec3 arg2, Channel arg3)
method_19748(float arg0, float arg1, class_243 arg2, class_4224 arg3)
method_19748(float arg0, float arg1, Vec3d arg2, Source source)
private void
lambda$refreshCategoryVolume$0(SoundSource arg0, SoundInstance arg1, ChannelAccess$ChannelHandle arg2)
method_76567(class_3419 arg0, class_1113 arg1, class_4235$class_4236 arg2)
method_76567(SoundCategory arg0, SoundInstance sound, Channel$SourceManager manager)
private static void
lambda$refreshCategoryVolume$1(float arg0, Channel arg1)
method_76565(float arg0, class_4224 arg1)
method_76565(float arg0, Source source)
private static void
lambda$new$0(it.unimi.dsi.fastutil.objects.Object2FloatOpenHashMap arg0)
method_76568(it.unimi.dsi.fastutil.objects.Object2FloatOpenHashMap arg0)
method_76568(it.unimi.dsi.fastutil.objects.Object2FloatOpenHashMap map)