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 hjn
  • Field Details Link icon

    • CHUNK_SIZE Link icon

      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 Lhjn;a:I
  • Method Details Link icon

    • read Link icon

      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 Lhjn;a(Lit/unimi/dsi/fastutil/floats/FloatConsumer;)Z
    • read Link icon

      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 Lhjj;a(I)Ljava/nio/ByteBuffer;
    • readAll Link icon

      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 Lhjm;b()Ljava/nio/ByteBuffer;