Package com.mojang.blaze3d.audio
Class Channel
java.lang.Object
com.mojang.blaze3d.audio.Channel
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
private final AtomicBoolean
private static final org.slf4j.Logger
private static final int
private final int
private AudioStream
private int
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
attachBufferStream
(AudioStream p_83659_) void
attachStaticBuffer
(SoundBuffer p_83657_) private static int
calculateBufferSize
(AudioFormat p_83661_, int p_83662_) (package private) static Channel
create()
void
destroy()
void
private int
getState()
void
linearAttenuation
(float p_83674_) void
pause()
void
play()
boolean
playing()
private void
pumpBuffers
(int p_83653_) private int
void
setLooping
(boolean p_83664_) void
setPitch
(float p_83651_) void
setRelative
(boolean p_83671_) void
setSelfPosition
(Vec3 p_83655_) void
setVolume
(float p_83667_) void
stop()
boolean
stopped()
void
unpause()
void
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
QUEUED_BUFFER_COUNT
private static final int QUEUED_BUFFER_COUNT- See Also:
-
BUFFER_DURATION_SECONDS
public static final int BUFFER_DURATION_SECONDS- See Also:
-
source
private final int source -
initialized
-
streamingBufferSize
private int streamingBufferSize -
stream
-
-
Constructor Details
-
Channel
private Channel(int p_83648_)
-
-
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() -
playing
public boolean playing() -
stopped
public boolean stopped() -
setSelfPosition
-
setPitch
public void setPitch(float p_83651_) -
setLooping
public void setLooping(boolean p_83664_) -
setVolume
public void setVolume(float p_83667_) -
disableAttenuation
public void disableAttenuation() -
linearAttenuation
public void linearAttenuation(float p_83674_) -
setRelative
public void setRelative(boolean p_83671_) -
attachStaticBuffer
-
attachBufferStream
-
calculateBufferSize
-
pumpBuffers
private void pumpBuffers(int p_83653_) -
updateStream
public void updateStream() -
removeProcessedBuffers
private int removeProcessedBuffers()
-