Class OggAudioStream

java.lang.Object
net.minecraft.client.sound.OggAudioStream
All Implemented Interfaces:
Closeable, AutoCloseable, AudioStream

@Environment(CLIENT) public class OggAudioStream extends Object implements AudioStream
Mappings:
Namespace Name
official dol
intermediary net/minecraft/class_4228
named net/minecraft/client/sound/OggAudioStream
  • Field Details

    • field_31898

      private static final int field_31898
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official a Ldol;a:I
      intermediary field_31898 Lnet/minecraft/class_4228;field_31898:I
      named field_31898 Lnet/minecraft/client/sound/OggAudioStream;field_31898:I
    • pointer

      private long pointer
      Mappings:
      Namespace Name Mixin selector
      official b Ldol;b:J
      intermediary field_18907 Lnet/minecraft/class_4228;field_18907:J
      named pointer Lnet/minecraft/client/sound/OggAudioStream;pointer:J
    • format

      private final AudioFormat format
      Mappings:
      Namespace Name Mixin selector
      official c Ldol;c:Ljavax/sound/sampled/AudioFormat;
      intermediary field_18908 Lnet/minecraft/class_4228;field_18908:Ljavax/sound/sampled/AudioFormat;
      named format Lnet/minecraft/client/sound/OggAudioStream;format:Ljavax/sound/sampled/AudioFormat;
    • inputStream

      private final InputStream inputStream
      Mappings:
      Namespace Name Mixin selector
      official d Ldol;d:Ljava/io/InputStream;
      intermediary field_18909 Lnet/minecraft/class_4228;field_18909:Ljava/io/InputStream;
      named inputStream Lnet/minecraft/client/sound/OggAudioStream;inputStream:Ljava/io/InputStream;
    • buffer

      private ByteBuffer buffer
      Mappings:
      Namespace Name Mixin selector
      official e Ldol;e:Ljava/nio/ByteBuffer;
      intermediary field_18910 Lnet/minecraft/class_4228;field_18910:Ljava/nio/ByteBuffer;
      named buffer Lnet/minecraft/client/sound/OggAudioStream;buffer:Ljava/nio/ByteBuffer;
  • Constructor Details

    • OggAudioStream

      public OggAudioStream(InputStream inputStream) throws IOException
      Throws:
      IOException
      Mappings:
      Namespace Name Mixin selector
      official <init> Ldol;<init>(Ljava/io/InputStream;)V
      intermediary <init> Lnet/minecraft/class_4228;<init>(Ljava/io/InputStream;)V
      named <init> Lnet/minecraft/client/sound/OggAudioStream;<init>(Ljava/io/InputStream;)V
  • Method Details

    • readHeader

      private boolean readHeader() throws IOException
      Throws:
      IOException
      Mappings:
      Namespace Name Mixin selector
      official c Ldol;c()Z
      intermediary method_19677 Lnet/minecraft/class_4228;method_19677()Z
      named readHeader Lnet/minecraft/client/sound/OggAudioStream;readHeader()Z
    • increaseBufferSize

      private void increaseBufferSize()
      Mappings:
      Namespace Name Mixin selector
      official d Ldol;d()V
      intermediary method_19678 Lnet/minecraft/class_4228;method_19678()V
      named increaseBufferSize Lnet/minecraft/client/sound/OggAudioStream;increaseBufferSize()V
    • readOggFile

      private boolean readOggFile(OggAudioStream.ChannelList channelList) throws IOException
      Throws:
      IOException
      Mappings:
      Namespace Name Mixin selector
      official a Ldol;a(Ldol$a;)Z
      intermediary method_19674 Lnet/minecraft/class_4228;method_19674(Lnet/minecraft/class_4228$class_4229;)Z
      named readOggFile Lnet/minecraft/client/sound/OggAudioStream;readOggFile(Lnet/minecraft/client/sound/OggAudioStream$ChannelList;)Z
    • readChannels

      private void readChannels(FloatBuffer floatBuffer, OggAudioStream.ChannelList channelList)
      Mappings:
      Namespace Name Mixin selector
      official a Ldol;a(Ljava/nio/FloatBuffer;Ldol$a;)V
      intermediary method_19675 Lnet/minecraft/class_4228;method_19675(Ljava/nio/FloatBuffer;Lnet/minecraft/class_4228$class_4229;)V
      named readChannels Lnet/minecraft/client/sound/OggAudioStream;readChannels(Ljava/nio/FloatBuffer;Lnet/minecraft/client/sound/OggAudioStream$ChannelList;)V
    • readChannels

      private void readChannels(FloatBuffer floatBuffer, FloatBuffer floatBuffer2, OggAudioStream.ChannelList channelList)
      Mappings:
      Namespace Name Mixin selector
      official a Ldol;a(Ljava/nio/FloatBuffer;Ljava/nio/FloatBuffer;Ldol$a;)V
      intermediary method_19676 Lnet/minecraft/class_4228;method_19676(Ljava/nio/FloatBuffer;Ljava/nio/FloatBuffer;Lnet/minecraft/class_4228$class_4229;)V
      named readChannels Lnet/minecraft/client/sound/OggAudioStream;readChannels(Ljava/nio/FloatBuffer;Ljava/nio/FloatBuffer;Lnet/minecraft/client/sound/OggAudioStream$ChannelList;)V
    • close

      public void close() throws IOException
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable
      Throws:
      IOException
    • getFormat

      public AudioFormat getFormat()
      Specified by:
      getFormat in interface AudioStream
      Mappings:
      Namespace Name Mixin selector
      official a Lfau;a()Ljavax/sound/sampled/AudioFormat;
      intermediary method_19719 Lnet/minecraft/class_4234;method_19719()Ljavax/sound/sampled/AudioFormat;
      named getFormat Lnet/minecraft/client/sound/AudioStream;getFormat()Ljavax/sound/sampled/AudioFormat;
    • getBuffer

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

      public ByteBuffer getBuffer() throws IOException
      Throws:
      IOException
      Mappings:
      Namespace Name Mixin selector
      official b Ldol;b()Ljava/nio/ByteBuffer;
      intermediary method_19721 Lnet/minecraft/class_4228;method_19721()Ljava/nio/ByteBuffer;
      named getBuffer Lnet/minecraft/client/sound/OggAudioStream;getBuffer()Ljava/nio/ByteBuffer;