@Environment(value=CLIENT) public class Source extends Object
Modifier and Type | Field and Description |
---|---|
private int |
bufferSize |
private static Logger |
LOGGER |
private AtomicBoolean |
playing |
private int |
pointer |
private AudioStream |
stream |
Modifier | Constructor and Description |
---|---|
private |
Source(int pointer) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
(package private) static Source |
create() |
void |
disableAttenuation() |
private static int |
getBufferSize(AudioFormat format,
int time) |
private int |
getSourceState() |
boolean |
isStopped() |
private void |
method_19640(int int2) |
void |
pause() |
void |
play() |
private int |
removeProcessedBuffers() |
void |
resume() |
void |
setAttenuation(float float2) |
void |
setBuffer(StaticSound staticSound) |
void |
setLooping(boolean bool) |
void |
setPitch(float float2) |
void |
setPosition(Vec3d vec3d) |
void |
setRelative(boolean bool) |
void |
setStream(AudioStream stream) |
void |
setVolume(float float2) |
void |
stop() |
void |
tick() |
private static final Logger LOGGER
private final int pointer
private final AtomicBoolean playing
private int bufferSize
@Nullable private AudioStream stream
public void close()
public void play()
private int getSourceState()
public void pause()
public void resume()
public void stop()
public boolean isStopped()
public void setPosition(Vec3d vec3d)
public void setPitch(float float2)
public void setLooping(boolean bool)
public void setVolume(float float2)
public void disableAttenuation()
public void setAttenuation(float float2)
public void setRelative(boolean bool)
public void setBuffer(StaticSound staticSound)
public void setStream(AudioStream stream)
private static int getBufferSize(AudioFormat format, int time)
private void method_19640(int int2)
public void tick()
private int removeProcessedBuffers()