Class BedrockPcmStream

java.lang.Object
com.viaversion.viafabricplus.bedrock.appearance.BedrockPcmStream
All Implemented Interfaces:
Closeable, AutoCloseable, net.minecraft.client.sounds.AudioStream

public final class BedrockPcmStream extends Object implements net.minecraft.client.sounds.AudioStream
Repeats whole PCM frames without duplicating the sample, and tracks queued OpenAL frames.
  • Method Details

    • getFormat

      public AudioFormat getFormat()
      Specified by:
      getFormat in interface net.minecraft.client.sounds.AudioStream
    • read

      public ByteBuffer read(int requested)
      Specified by:
      read in interface net.minecraft.client.sounds.AudioStream
    • processed

      public void processed(int count)
      Called on the sound executor after Channel removes processed OpenAL buffers.
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable