Package net.minecraft.client.sound
Class OggAudioStream
java.lang.Object
net.minecraft.client.sound.OggAudioStream
- All Implemented Interfaces:
Closeable,AutoCloseable,AudioStream
- Mappings:
Namespace Name official efzintermediary net/minecraft/class_4228named net/minecraft/client/sound/OggAudioStream
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate ByteBufferprivate static final intprivate final AudioFormatprivate final InputStreamprivate long -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()getBuffer(int size) private voidprivate voidreadChannels(FloatBuffer buf, FloatBuffer buf2, OggAudioStream.ChannelList channelList) private voidreadChannels(FloatBuffer buf, OggAudioStream.ChannelList channelList) private booleanprivate booleanreadOggFile(OggAudioStream.ChannelList channelList)
-
Field Details
-
BUFFER_SIZE
private static final int BUFFER_SIZE- See Also:
- Mappings:
Namespace Name Mixin selector official aLefz;a:Iintermediary field_31898Lnet/minecraft/class_4228;field_31898:Inamed BUFFER_SIZELnet/minecraft/client/sound/OggAudioStream;BUFFER_SIZE:I
-
pointer
private long pointer- Mappings:
Namespace Name Mixin selector official bLefz;b:Jintermediary field_18907Lnet/minecraft/class_4228;field_18907:Jnamed pointerLnet/minecraft/client/sound/OggAudioStream;pointer:J
-
format
- Mappings:
Namespace Name Mixin selector official cLefz;c:Ljavax/sound/sampled/AudioFormat;intermediary field_18908Lnet/minecraft/class_4228;field_18908:Ljavax/sound/sampled/AudioFormat;named formatLnet/minecraft/client/sound/OggAudioStream;format:Ljavax/sound/sampled/AudioFormat;
-
inputStream
- Mappings:
Namespace Name Mixin selector official dLefz;d:Ljava/io/InputStream;intermediary field_18909Lnet/minecraft/class_4228;field_18909:Ljava/io/InputStream;named inputStreamLnet/minecraft/client/sound/OggAudioStream;inputStream:Ljava/io/InputStream;
-
buffer
- Mappings:
Namespace Name Mixin selector official eLefz;e:Ljava/nio/ByteBuffer;intermediary field_18910Lnet/minecraft/class_4228;field_18910:Ljava/nio/ByteBuffer;named bufferLnet/minecraft/client/sound/OggAudioStream;buffer:Ljava/nio/ByteBuffer;
-
-
Constructor Details
-
OggAudioStream
- Throws:
IOException- Mappings:
Namespace Name Mixin selector official <init>Lefz;<init>(Ljava/io/InputStream;)Vintermediary <init>Lnet/minecraft/class_4228;<init>(Ljava/io/InputStream;)Vnamed <init>Lnet/minecraft/client/sound/OggAudioStream;<init>(Ljava/io/InputStream;)V
-
-
Method Details
-
readHeader
- Throws:
IOException- Mappings:
Namespace Name Mixin selector official cLefz;c()Zintermediary method_19677Lnet/minecraft/class_4228;method_19677()Znamed readHeaderLnet/minecraft/client/sound/OggAudioStream;readHeader()Z
-
increaseBufferSize
private void increaseBufferSize()- Mappings:
Namespace Name Mixin selector official dLefz;d()Vintermediary method_19678Lnet/minecraft/class_4228;method_19678()Vnamed increaseBufferSizeLnet/minecraft/client/sound/OggAudioStream;increaseBufferSize()V
-
readOggFile
- Throws:
IOException- Mappings:
Namespace Name Mixin selector official aLefz;a(Lefz$a;)Zintermediary method_19674Lnet/minecraft/class_4228;method_19674(Lnet/minecraft/class_4228$class_4229;)Znamed readOggFileLnet/minecraft/client/sound/OggAudioStream;readOggFile(Lnet/minecraft/client/sound/OggAudioStream$ChannelList;)Z
-
readChannels
- Mappings:
Namespace Name Mixin selector official aLefz;a(Ljava/nio/FloatBuffer;Lefz$a;)Vintermediary method_19675Lnet/minecraft/class_4228;method_19675(Ljava/nio/FloatBuffer;Lnet/minecraft/class_4228$class_4229;)Vnamed readChannelsLnet/minecraft/client/sound/OggAudioStream;readChannels(Ljava/nio/FloatBuffer;Lnet/minecraft/client/sound/OggAudioStream$ChannelList;)V
-
readChannels
private void readChannels(FloatBuffer buf, FloatBuffer buf2, OggAudioStream.ChannelList channelList) - Mappings:
Namespace Name Mixin selector official aLefz;a(Ljava/nio/FloatBuffer;Ljava/nio/FloatBuffer;Lefz$a;)Vintermediary method_19676Lnet/minecraft/class_4228;method_19676(Ljava/nio/FloatBuffer;Ljava/nio/FloatBuffer;Lnet/minecraft/class_4228$class_4229;)Vnamed readChannelsLnet/minecraft/client/sound/OggAudioStream;readChannels(Ljava/nio/FloatBuffer;Ljava/nio/FloatBuffer;Lnet/minecraft/client/sound/OggAudioStream$ChannelList;)V
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
getFormat
- Specified by:
getFormatin interfaceAudioStream- Mappings:
Namespace Name Mixin selector official aLfyj;a()Ljavax/sound/sampled/AudioFormat;intermediary method_19719Lnet/minecraft/class_4234;method_19719()Ljavax/sound/sampled/AudioFormat;named getFormatLnet/minecraft/client/sound/AudioStream;getFormat()Ljavax/sound/sampled/AudioFormat;
-
getBuffer
- Specified by:
getBufferin interfaceAudioStream- Throws:
IOException- Mappings:
Namespace Name Mixin selector official aLfyj;a(I)Ljava/nio/ByteBuffer;intermediary method_19720Lnet/minecraft/class_4234;method_19720(I)Ljava/nio/ByteBuffer;named getBufferLnet/minecraft/client/sound/AudioStream;getBuffer(I)Ljava/nio/ByteBuffer;
-
getBuffer
- Throws:
IOException- Mappings:
Namespace Name Mixin selector official bLefz;b()Ljava/nio/ByteBuffer;intermediary method_19721Lnet/minecraft/class_4228;method_19721()Ljava/nio/ByteBuffer;named getBufferLnet/minecraft/client/sound/OggAudioStream;getBuffer()Ljava/nio/ByteBuffer;
-