Package net.minecraft.client.audio
Class SoundSource
java.lang.Object
net.minecraft.client.audio.SoundSource
-
Field Summary
Modifier and TypeFieldDescriptionprivate final AtomicBoolean
private static final org.apache.logging.log4j.Logger
private final int
private IAudioStream
private int
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
attachBufferStream
(IAudioStream p_216433_1_) void
attachStaticBuffer
(AudioStreamBuffer p_216429_1_) private static int
calculateBufferSize
(AudioFormat p_216417_0_, int p_216417_1_) (package private) static SoundSource
create()
void
destroy()
void
private int
getState()
void
linearAttenuation
(float p_216423_1_) void
pause()
void
play()
private void
pumpBuffers
(int p_216421_1_) private int
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
-
Field Details
-
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER -
source
private final int source -
initialized
-
streamingBufferSize
private int streamingBufferSize -
stream
-
-
Constructor Details
-
SoundSource
private SoundSource(int p_i51178_1_)
-
-
Method Details
-
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
-
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
-
attachBufferStream
-
calculateBufferSize
-
pumpBuffers
private void pumpBuffers(int p_216421_1_) -
updateStream
public void updateStream() -
removeProcessedBuffers
private int removeProcessedBuffers()
-