Class SoundSource

java.lang.Object
net.minecraft.client.audio.SoundSource

public class SoundSource extends Object
  • Field Details

    • LOGGER

      private static final org.apache.logging.log4j.Logger LOGGER
    • source

      private final int source
    • initialized

      private final AtomicBoolean initialized
    • streamingBufferSize

      private int streamingBufferSize
    • stream

      @Nullable private IAudioStream stream
  • Constructor Details

    • SoundSource

      private SoundSource(int p_i51178_1_)
  • Method Details

    • 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(AudioFormat p_216417_0_, int p_216417_1_)
    • pumpBuffers

      private void pumpBuffers(int p_216421_1_)
    • updateStream

      public void updateStream()
    • removeProcessedBuffers

      private int removeProcessedBuffers()