Class Channel

java.lang.Object
com.mojang.blaze3d.audio.Channel

public class Channel extends Object
  • 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

      private final AtomicBoolean initialized
    • streamingBufferSize

      private int streamingBufferSize
    • stream

      @Nullable private AudioStream stream
  • Constructor Details

    • Channel

      private Channel(int p_83648_)
  • Method Details

    • create

      @Nullable static Channel 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

      public void setSelfPosition(Vec3 p_83655_)
    • 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

      public void attachStaticBuffer(SoundBuffer p_83657_)
    • attachBufferStream

      public void attachBufferStream(AudioStream p_83659_)
    • calculateBufferSize

      private static int calculateBufferSize(AudioFormat p_83661_, int p_83662_)
    • pumpBuffers

      private void pumpBuffers(int p_83653_)
    • updateStream

      public void updateStream()
    • removeProcessedBuffers

      private int removeProcessedBuffers()