Interface BufferedAudioStream

All Superinterfaces:
AudioStream, AutoCloseable, Closeable, NonRepeatingAudioStream
All Known Implementing Classes:
OggAudioStream

@Environment(CLIENT) public interface BufferedAudioStream extends NonRepeatingAudioStream
Mappings:
Namespace Name
named net/minecraft/client/sound/BufferedAudioStream
intermediary net/minecraft/class_9673
official gto
  • Field Details

    • CHUNK_SIZE

      static final int CHUNK_SIZE
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named CHUNK_SIZE Lnet/minecraft/client/sound/BufferedAudioStream;CHUNK_SIZE:I
      intermediary field_51441 Lnet/minecraft/class_9673;field_51441:I
      official a Lgto;a:I
  • Method Details

    • read

      boolean read(FloatConsumer consumer) throws IOException
      Throws:
      IOException
      Mappings:
      Namespace Name Mixin selector
      named read Lnet/minecraft/client/sound/BufferedAudioStream;read(Lit/unimi/dsi/fastutil/floats/FloatConsumer;)Z
      intermediary method_59758 Lnet/minecraft/class_9673;method_59758(Lit/unimi/dsi/fastutil/floats/FloatConsumer;)Z
      official a Lgto;a(Lit/unimi/dsi/fastutil/floats/FloatConsumer;)Z
    • read

      default ByteBuffer read(int size) throws IOException
      Specified by:
      read in interface AudioStream
      Throws:
      IOException
      Mappings:
      Namespace Name Mixin selector
      named read Lnet/minecraft/client/sound/AudioStream;read(I)Ljava/nio/ByteBuffer;
      intermediary method_19720 Lnet/minecraft/class_4234;method_19720(I)Ljava/nio/ByteBuffer;
      official a Lgtk;a(I)Ljava/nio/ByteBuffer;
    • readAll

      default ByteBuffer readAll() throws IOException
      Specified by:
      readAll in interface NonRepeatingAudioStream
      Throws:
      IOException
      Mappings:
      Namespace Name Mixin selector
      named readAll Lnet/minecraft/client/sound/NonRepeatingAudioStream;readAll()Ljava/nio/ByteBuffer;
      intermediary method_59757 Lnet/minecraft/class_9672;method_59757()Ljava/nio/ByteBuffer;
      official b Lgtn;b()Ljava/nio/ByteBuffer;