net.minecraft.client.sounds

public class SoundEngine

fxg
net.minecraft.client.sounds.SoundEngine
net.minecraft.class_1140
net.minecraft.client.sound.SoundSystem
net.minecraft.src.C_4600_

Field summary

Modifier and TypeField
private static final org.slf4j.Marker
d
MARKER
field_5553
MARKER
f_120214_
private static final org.slf4j.Logger
e
LOGGER
field_5559
LOGGER
f_120215_
private static final float
f
PITCH_MIN
field_33021
MIN_PITCH
f_174983_
private static final float
g
PITCH_MAX
field_33022
MAX_PITCH
f_174984_
private static final float
h
VOLUME_MIN
field_33023
MIN_VOLUME
f_174985_
private static final float
i
VOLUME_MAX
field_33024
MAX_VOLUME
f_174986_
private static final int
j
MIN_SOURCE_LIFETIME
field_33025
field_33025
f_174987_
private static final Set<ResourceLocation>
k
ONLY_WARN_ONCE
field_5561
UNKNOWN_SOUNDS
f_120216_
private static final long
l
DEFAULT_DEVICE_CHECK_INTERVAL_MS
field_34966
MIN_TIME_INTERVAL_TO_RELOAD_SOUNDS
f_194471_
public static final String
a
MISSING_SOUND
field_33020
FOR_THE_DEBUG
f_174982_
public static final String
b
OPEN_AL_SOFT_PREFIX
field_34827
OPENAL_SOFT_ON
f_194469_
public static final int
c
OPEN_AL_SOFT_PREFIX_LENGTH
field_34828
OPENAL_SOFT_ON_LENGTH
f_194470_
private final SoundManager
m
soundManager
field_5552
loader
f_120217_
private final Options
n
options
field_5555
settings
f_120218_
private boolean
o
loaded
field_5563
started
f_120219_
private final Library
p
library
field_18945
soundEngine
f_120220_
private final Listener
q
listener
field_18946
listener
f_120221_
private final SoundBufferLibrary
r
soundBuffers
field_18947
soundLoader
f_120222_
private final SoundEngineExecutor
s
executor
field_18948
taskQueue
f_120223_
private final ChannelAccess
t
channelAccess
field_18949
channel
f_120224_
private int
u
tickCount
field_5550
ticks
f_120225_
private long
v
lastDeviceCheckTime
field_34967
lastSoundDeviceCheckTime
f_194472_
private final AtomicReference<SoundEngine$DeviceCheckState>
w
devicePoolState
field_35083
deviceChangeStatus
f_194473_
private final Map<SoundInstance, ChannelAccess$ChannelHandle>
x
instanceToChannel
field_18950
sources
f_120226_
private final com.google.common.collect.Multimap<SoundSource, SoundInstance>
y
instanceBySource
field_18951
sounds
f_120227_
private final List<TickableSoundInstance>
z
tickingSounds
field_5557
tickingSounds
f_120228_
private final Map<SoundInstance, Integer>
A
queuedSounds
field_5566
startTicks
f_120229_
private final Map<SoundInstance, Integer>
B
soundDeleteTime
field_18952
soundEndTicks
f_120230_
private final List<SoundEventListener>
C
listeners
field_5558
listeners
f_120231_
private final List<TickableSoundInstance>
D
queuedTickableSounds
field_20532
soundsToPlayNextTick
f_120232_
private final List<Sound>
E
preloadQueue
field_5551
preloadedSounds
f_120233_

Constructor summary

ModifierConstructor
public (SoundManager loader, Options settings, ResourceProvider resourceFactory)

Method summary

Modifier and TypeMethod
public void
a()
reload()
method_4837()
reloadSounds()
m_120239_()
private synchronized void
h()
loadLibrary()
method_4846()
start()
m_120323_()
private float
a(ams arg0)
getVolume(SoundSource arg0)
method_4850(class_3419 arg0)
getSoundVolume(SoundCategory category)
m_120258_(C_125_ arg0)
public void
a(ams arg0, float arg1)
updateCategoryVolume(SoundSource arg0, float arg1)
method_4844(class_3419 arg0, float arg1)
updateSoundVolume(SoundCategory category, float volume)
m_120260_(C_125_ p_120262_, float arg1)
public void
b()
destroy()
method_4856()
stop()
m_120304_()
public void
a(fwf arg0)
stop(SoundInstance arg0)
method_19753(class_1113 arg0)
stop(SoundInstance sound)
m_120274_(C_4566_ arg0)
public void
c()
stopAll()
method_4843()
stopAll()
m_120311_()
public void
a(fxi arg0)
addEventListener(SoundEventListener arg0)
method_4855(class_1145 arg0)
registerListener(SoundInstanceListener listener)
m_120295_(C_4602_ arg0)
public void
b(fxi arg0)
removeEventListener(SoundEventListener arg0)
method_4847(class_1145 arg0)
unregisterListener(SoundInstanceListener listener)
m_120307_(C_4602_ arg0)
private boolean
i()
shouldChangeDevice()
method_38744()
shouldReloadSounds()
m_194512_()
public void
a(boolean arg0)
tick(boolean arg0)
method_20185(boolean arg0)
tick(boolean paused)
m_120302_(boolean arg0)
private void
j()
tickNonPaused()
method_4857()
tick()
m_120326_()
private static boolean
d(fwf arg0)
requiresManualLooping(SoundInstance arg0)
method_24878(class_1113 arg0)
canRepeatInstantly(SoundInstance sound)
m_120315_(C_4566_ p_120316_)
private static boolean
e(fwf arg0)
shouldLoopManually(SoundInstance arg0)
method_24879(class_1113 arg0)
isRepeatDelayed(SoundInstance sound)
m_120318_(C_4566_ p_120319_)
private static boolean
f(fwf arg0)
shouldLoopAutomatically(SoundInstance arg0)
method_24880(class_1113 arg0)
shouldRepeatInstantly(SoundInstance sound)
m_120321_(C_4566_ p_120322_)
public boolean
b(fwf arg0)
isActive(SoundInstance arg0)
method_4835(class_1113 arg0)
isPlaying(SoundInstance sound)
m_120305_(C_4566_ arg0)
public void
c(fwf arg0)
play(SoundInstance arg0)
method_4854(class_1113 arg0)
play(SoundInstance sound)
m_120312_(C_4566_ arg0)
public void
a(fwg arg0)
queueTickingSound(TickableSoundInstance arg0)
method_22139(class_1117 arg0)
playNextTick(TickableSoundInstance sound)
m_120282_(C_4568_ arg0)
public void
a(fwc arg0)
requestPreload(Sound arg0)
method_4851(class_1111 arg0)
addPreloadedSound(Sound sound)
m_120272_(C_4562_ arg0)
private float
g(fwf arg0)
calculatePitch(SoundInstance arg0)
method_4849(class_1113 arg0)
getAdjustedPitch(SoundInstance sound)
m_120324_(C_4566_ arg0)
private float
h(fwf arg0)
calculateVolume(SoundInstance arg0)
method_4853(class_1113 arg0)
getAdjustedVolume(SoundInstance sound)
m_120327_(C_4566_ arg0)
private float
a(float arg0, ams arg1)
calculateVolume(float arg0, SoundSource arg1)
method_43222(float arg0, class_3419 arg1)
getAdjustedVolume(float volume, SoundCategory category)
m_235257_(float p_235259_, C_125_ arg1)
public void
d()
pause()
method_19761()
pauseAll()
m_120314_()
public void
e()
resume()
method_19762()
resumeAll()
m_120317_()
public void
a(fwf arg0, int arg1)
playDelayed(SoundInstance arg0, int arg1)
method_4852(class_1113 arg0, int arg1)
play(SoundInstance sound, int delay)
m_120276_(C_4566_ p_120278_, int arg1)
public void
a(elt arg0)
updateSource(Camera arg0)
method_4840(class_4184 arg0)
updateListenerPosition(Camera camera)
m_120270_(C_3373_ arg0)
public void
a(add arg0, ams arg1)
stop(ResourceLocation arg0, SoundSource arg1)
method_4838(class_2960 arg0, class_3419 arg1)
stopSounds(Identifier id, SoundCategory category)
m_120299_(C_5265_ p_120301_, C_125_ arg1)
public String
f()
getDebugString()
method_20304()
getDebugString()
m_120320_()
public List<String>
g()
getAvailableSoundDevices()
method_38564()
getSoundDevices()
m_194511_()