Package net.minecraft.client.audio
Class SoundSource
- java.lang.Object
-
- net.minecraft.client.audio.SoundSource
-
public class SoundSource extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.concurrent.atomic.AtomicBoolean
initialized
private static org.apache.logging.log4j.Logger
LOGGER
private int
source
private IAudioStream
stream
private int
streamingBufferSize
-
Constructor Summary
Constructors Modifier Constructor Description private
SoundSource(int p_i51178_1_)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
attachBufferStream(IAudioStream p_216433_1_)
void
attachStaticBuffer(AudioStreamBuffer p_216429_1_)
private static int
calculateBufferSize(javax.sound.sampled.AudioFormat p_216417_0_, int p_216417_1_)
(package private) static SoundSource
create()
void
destroy()
void
disableAttenuation()
private int
getState()
void
linearAttenuation(float p_216423_1_)
void
pause()
void
play()
private void
pumpBuffers(int p_216421_1_)
private int
removeProcessedBuffers()
void
setLooping(boolean p_216425_1_)
void
setPitch(float p_216422_1_)
void
setRelative(boolean p_216432_1_)
void
setSelfPosition(Vector3d p_216420_1_)
void
setVolume(float p_216430_1_)
void
stop()
boolean
stopped()
void
unpause()
void
updateStream()
-
-
-
Field Detail
-
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER
-
source
private final int source
-
initialized
private final java.util.concurrent.atomic.AtomicBoolean initialized
-
streamingBufferSize
private int streamingBufferSize
-
stream
@Nullable private IAudioStream stream
-
-
Method Detail
-
create
@Nullable static SoundSource create()
-
destroy
public void destroy()
-
play
public void play()
-
getState
private int getState()
-
pause
public void pause()
-
unpause
public void unpause()
-
stop
public void stop()
-
stopped
public boolean stopped()
-
setSelfPosition
public void setSelfPosition(Vector3d p_216420_1_)
-
setPitch
public void setPitch(float p_216422_1_)
-
setLooping
public void setLooping(boolean p_216425_1_)
-
setVolume
public void setVolume(float p_216430_1_)
-
disableAttenuation
public void disableAttenuation()
-
linearAttenuation
public void linearAttenuation(float p_216423_1_)
-
setRelative
public void setRelative(boolean p_216432_1_)
-
attachStaticBuffer
public void attachStaticBuffer(AudioStreamBuffer p_216429_1_)
-
attachBufferStream
public void attachBufferStream(IAudioStream p_216433_1_)
-
calculateBufferSize
private static int calculateBufferSize(javax.sound.sampled.AudioFormat p_216417_0_, int p_216417_1_)
-
pumpBuffers
private void pumpBuffers(int p_216421_1_)
-
updateStream
public void updateStream()
-
removeProcessedBuffers
private int removeProcessedBuffers()
-
-