net.minecraft.client.sounds

public class SoundEngine

fxg
net.minecraft.client.sounds.SoundEngine
net.minecraft.class_1140
net.minecraft.unmapped.C_stgbrlun
net.minecraft.client.sound.SoundSystem
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
f_dhtfppaq
MARKER
MARKER
f_120214_
private static final org.slf4j.Logger
e
LOGGER
field_5559
f_bvozlott
LOGGER
LOGGER
f_120215_
private static final float
f
PITCH_MIN
field_33021
f_iupymkcp
MIN_PITCH
MIN_PITCH
f_174983_
private static final float
g
PITCH_MAX
field_33022
f_swvwyqfl
MAX_PITCH
MAX_PITCH
f_174984_
private static final float
h
VOLUME_MIN
field_33023
f_httkpnqy
MIN_VOLUME
MIN_VOLUME
f_174985_
private static final float
i
VOLUME_MAX
field_33024
f_hvmdhnqu
MAX_VOLUME
MAX_VOLUME
f_174986_
private static final int
j
MIN_SOURCE_LIFETIME
field_33025
f_ooqqrapa
field_33025
MIN_SOURCE_LIFETIME
f_174987_
private static final Set<ResourceLocation>
k
ONLY_WARN_ONCE
field_5561
f_mkjqvrng
UNKNOWN_SOUNDS
UNKNOWN_SOUNDS
f_120216_
private static final long
l
DEFAULT_DEVICE_CHECK_INTERVAL_MS
field_34966
f_iqgrnhfd
MIN_TIME_INTERVAL_TO_RELOAD_SOUNDS
DEFAULT_DEVICE_CHECK_INTERVAL
f_194471_
public static final String
a
MISSING_SOUND
field_33020
f_uasoxudm
FOR_THE_DEBUG
FOR_THE_DEBUG
f_174982_
public static final String
b
OPEN_AL_SOFT_PREFIX
field_34827
f_bsrkfnhp
OPENAL_SOFT_ON
OPENAL_SOFT_ON
f_194469_
public static final int
c
OPEN_AL_SOFT_PREFIX_LENGTH
field_34828
f_jntcvmkp
OPENAL_SOFT_ON_LENGTH
OPENAL_SOFT_ON_LENGTH
f_194470_
private final SoundManager
m
soundManager
field_5552
f_ramdambm
loader
loader
f_120217_
private final Options
n
options
field_5555
f_qqehthct
settings
settings
f_120218_
private boolean
o
loaded
field_5563
f_hcluncyw
started
started
f_120219_
private final Library
p
library
field_18945
f_zjqgbepu
soundEngine
soundEngine
f_120220_
private final Listener
q
listener
field_18946
f_vqxjsweb
listener
listener
f_120221_
private final SoundBufferLibrary
r
soundBuffers
field_18947
f_xeuabuwy
soundLoader
soundLoader
f_120222_
private final SoundEngineExecutor
s
executor
field_18948
f_chiplauj
taskQueue
taskQueue
f_120223_
private final ChannelAccess
t
channelAccess
field_18949
f_vrwtqkmw
channel
channel
f_120224_
private int
u
tickCount
field_5550
f_muoapcbp
ticks
ticks
f_120225_
private long
v
lastDeviceCheckTime
field_34967
f_vasmsjsr
lastSoundDeviceCheckTime
lastSoundDeviceCheckTime
f_194472_
private final AtomicReference<SoundEngine$DeviceCheckState>
w
devicePoolState
field_35083
f_htyqlajt
deviceChangeStatus
deviceCheckState
f_194473_
private final Map<SoundInstance, ChannelAccess$ChannelHandle>
x
instanceToChannel
field_18950
f_lehdzrjy
sources
sources
f_120226_
private final com.google.common.collect.Multimap<SoundSource, SoundInstance>
y
instanceBySource
field_18951
f_fzisjasd
sounds
sounds
f_120227_
private final List<TickableSoundInstance>
z
tickingSounds
field_5557
f_fkxmefiu
tickingSounds
tickingSounds
f_120228_
private final Map<SoundInstance, Integer>
A
queuedSounds
field_5566
f_wmnnuihj
startTicks
startTicks
f_120229_
private final Map<SoundInstance, Integer>
B
soundDeleteTime
field_18952
f_bpeeuaei
soundEndTicks
soundEndTicks
f_120230_
private final List<SoundEventListener>
C
listeners
field_5558
f_qertiuyw
listeners
listeners
f_120231_
private final List<TickableSoundInstance>
D
queuedTickableSounds
field_20532
f_xhxirxzz
soundsToPlayNextTick
soundsToPlayNextTick
f_120232_
private final List<Sound>
E
preloadQueue
field_5551
f_aivobbjv
preloadedSounds
preloadedSounds
f_120233_

Constructor summary

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

Method summary

Modifier and TypeMethod
public void
a()
reload()
method_4837()
m_chxkzpva()
reloadSounds()
reloadSounds()
m_120239_()
private synchronized void
h()
loadLibrary()
method_4846()
m_nngfnxnc()
start()
start()
m_120323_()
private float
a(ams arg0)
getVolume(SoundSource arg0)
method_4850(class_3419 arg0)
m_lfocrrxe(C_pqzizukq arg0)
getSoundVolume(SoundCategory category)
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)
m_xdilvuqd(C_pqzizukq arg0, float arg1)
updateSoundVolume(SoundCategory category, float volume)
updateSoundVolume(SoundCategory category, float volume)
m_120260_(C_125_ p_120262_, float arg1)
public void
b()
destroy()
method_4856()
m_fflzzobs()
stop()
stop()
m_120304_()
public void
a(fwf arg0)
stop(SoundInstance arg0)
method_19753(class_1113 arg0)
m_voywkswh(C_uoilbcii arg0)
stop(SoundInstance sound)
stop(SoundInstance sound)
m_120274_(C_4566_ arg0)
public void
c()
stopAll()
method_4843()
m_xznierhu()
stopAll()
stopAll()
m_120311_()
public void
a(fxi arg0)
addEventListener(SoundEventListener arg0)
method_4855(class_1145 arg0)
m_dfprwycu(C_jptxtfxt arg0)
registerListener(SoundInstanceListener listener)
registerListener(SoundInstanceListener listener)
m_120295_(C_4602_ arg0)
public void
b(fxi arg0)
removeEventListener(SoundEventListener arg0)
method_4847(class_1145 arg0)
m_nwerrxob(C_jptxtfxt arg0)
unregisterListener(SoundInstanceListener listener)
unregisterListener(SoundInstanceListener listener)
m_120307_(C_4602_ arg0)
private boolean
i()
shouldChangeDevice()
method_38744()
m_yqwjwmsu()
shouldReloadSounds()
shouldReloadSounds()
m_194512_()
public void
a(boolean arg0)
tick(boolean arg0)
method_20185(boolean arg0)
m_zgejpfhq(boolean arg0)
tick(boolean paused)
tick(boolean paused)
m_120302_(boolean arg0)
private void
j()
tickNonPaused()
method_4857()
m_bnkwmywr()
tick()
tick()
m_120326_()
private static boolean
d(fwf arg0)
requiresManualLooping(SoundInstance arg0)
method_24878(class_1113 arg0)
m_qgmmxigz(C_uoilbcii arg0)
canRepeatInstantly(SoundInstance sound)
canRepeatInstantly(SoundInstance sound)
m_120315_(C_4566_ p_120316_)
private static boolean
e(fwf arg0)
shouldLoopManually(SoundInstance arg0)
method_24879(class_1113 arg0)
m_xyzqhhpi(C_uoilbcii arg0)
isRepeatDelayed(SoundInstance sound)
isRepeatDelayed(SoundInstance sound)
m_120318_(C_4566_ p_120319_)
private static boolean
f(fwf arg0)
shouldLoopAutomatically(SoundInstance arg0)
method_24880(class_1113 arg0)
m_fitmziqa(C_uoilbcii arg0)
shouldRepeatInstantly(SoundInstance sound)
shouldRepeatInstantly(SoundInstance sound)
m_120321_(C_4566_ p_120322_)
public boolean
b(fwf arg0)
isActive(SoundInstance arg0)
method_4835(class_1113 arg0)
m_upybahcb(C_uoilbcii arg0)
isPlaying(SoundInstance sound)
isPlaying(SoundInstance sound)
m_120305_(C_4566_ arg0)
public void
c(fwf arg0)
play(SoundInstance arg0)
method_4854(class_1113 arg0)
m_ynizwdma(C_uoilbcii arg0)
play(SoundInstance sound)
play(SoundInstance sound)
m_120312_(C_4566_ arg0)
public void
a(fwg arg0)
queueTickingSound(TickableSoundInstance arg0)
method_22139(class_1117 arg0)
m_lxqdwgwc(C_juuahjvj arg0)
playNextTick(TickableSoundInstance sound)
playNextTick(TickableSoundInstance sound)
m_120282_(C_4568_ arg0)
public void
a(fwc arg0)
requestPreload(Sound arg0)
method_4851(class_1111 arg0)
m_lbtvnopw(C_ranpgzkp arg0)
addPreloadedSound(Sound sound)
addPreloadedSound(Sound sound)
m_120272_(C_4562_ arg0)
private float
g(fwf arg0)
calculatePitch(SoundInstance arg0)
method_4849(class_1113 arg0)
m_tpsbqimn(C_uoilbcii arg0)
getAdjustedPitch(SoundInstance sound)
getAdjustedPitch(SoundInstance sound)
m_120324_(C_4566_ arg0)
private float
h(fwf arg0)
calculateVolume(SoundInstance arg0)
method_4853(class_1113 arg0)
m_lzwjpqcu(C_uoilbcii arg0)
getAdjustedVolume(SoundInstance sound)
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)
m_kkmuuvaj(float arg0, C_pqzizukq arg1)
getAdjustedVolume(float volume, SoundCategory category)
getAdjustedVolume(float volume, SoundCategory category)
m_235257_(float p_235259_, C_125_ arg1)
public void
d()
pause()
method_19761()
m_cqcstdxx()
pauseAll()
pauseAll()
m_120314_()
public void
e()
resume()
method_19762()
m_juvwkvdc()
resumeAll()
resumeAll()
m_120317_()
public void
a(fwf arg0, int arg1)
playDelayed(SoundInstance arg0, int arg1)
method_4852(class_1113 arg0, int arg1)
m_hzmgizmz(C_uoilbcii arg0, int arg1)
play(SoundInstance sound, int delay)
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)
m_dgwnjibb(C_dcmtgrvm arg0)
updateListenerPosition(Camera camera)
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)
m_eaeaucrp(C_ncpywfca arg0, C_pqzizukq arg1)
stopSounds(Identifier id, SoundCategory category)
stopSounds(Identifier id, SoundCategory category)
m_120299_(C_5265_ p_120301_, C_125_ arg1)
public String
f()
getDebugString()
method_20304()
m_olxetlgo()
getDebugString()
getDebugString()
m_120320_()
public List<String>
g()
getAvailableSoundDevices()
method_38564()
m_bfdcchfs()
getSoundDevices()
getAudioDevices()
m_194511_()