Package net.minecraft.client.sounds
Class JOrbisAudioStream
java.lang.Object
net.minecraft.client.sounds.JOrbisAudioStream
- All Implemented Interfaces:
Closeable
,AutoCloseable
,AudioStream
,FiniteAudioStream
,FloatSampleSource
-
Field Summary
Modifier and TypeFieldDescriptionprivate final AudioFormat
private final com.jcraft.jorbis.Block
private static final int
private final com.jcraft.jorbis.DspState
private final com.jcraft.jorbis.Info
private final InputStream
private final com.jcraft.jogg.Packet
private static final int
private static final int
private static final int
private final com.jcraft.jogg.Page
private static final int
private static final int
private static final int
private long
private final com.jcraft.jogg.StreamState
private final com.jcraft.jogg.SyncState
private long
Fields inherited from interface net.minecraft.client.sounds.FloatSampleSource
EXPECTED_MAX_FRAME_SIZE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
private static void
copyAnyChannels
(float[][] p_327919_, int p_335236_, int[] p_332016_, long p_329945_, it.unimi.dsi.fastutil.floats.FloatConsumer p_335757_) private static void
copyMono
(float[] p_332068_, int p_333939_, long p_329906_, it.unimi.dsi.fastutil.floats.FloatConsumer p_336173_) private static void
copyStereo
(float[] p_329921_, int p_328265_, float[] p_331752_, int p_331871_, long p_328398_, it.unimi.dsi.fastutil.floats.FloatConsumer p_335978_) private long
getSamplesToWrite
(int p_328687_) private static boolean
isError
(int p_335098_) boolean
readChunk
(it.unimi.dsi.fastutil.floats.FloatConsumer p_335177_) private com.jcraft.jogg.Packet
readIdentificationPacket
(com.jcraft.jogg.Page p_329701_) private com.jcraft.jogg.Packet
private com.jcraft.jogg.Page
readPage()
private boolean
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.client.sounds.FloatSampleSource
read, readAll
-
Field Details
-
BUFSIZE
private static final int BUFSIZE- See Also:
-
PAGEOUT_RECAPTURE
private static final int PAGEOUT_RECAPTURE- See Also:
-
PAGEOUT_NEED_MORE_DATA
private static final int PAGEOUT_NEED_MORE_DATA- See Also:
-
PAGEOUT_OK
private static final int PAGEOUT_OK- See Also:
-
PACKETOUT_ERROR
private static final int PACKETOUT_ERROR- See Also:
-
PACKETOUT_NEED_MORE_DATA
private static final int PACKETOUT_NEED_MORE_DATA- See Also:
-
PACKETOUT_OK
private static final int PACKETOUT_OK- See Also:
-
syncState
private final com.jcraft.jogg.SyncState syncState -
page
private final com.jcraft.jogg.Page page -
streamState
private final com.jcraft.jogg.StreamState streamState -
packet
private final com.jcraft.jogg.Packet packet -
info
private final com.jcraft.jorbis.Info info -
dspState
private final com.jcraft.jorbis.DspState dspState -
block
private final com.jcraft.jorbis.Block block -
audioFormat
-
input
-
samplesWritten
private long samplesWritten -
totalSamplesInStream
private long totalSamplesInStream
-
-
Constructor Details
-
JOrbisAudioStream
- Throws:
IOException
-
-
Method Details
-
isError
private static boolean isError(int p_335098_) -
getFormat
- Specified by:
getFormat
in interfaceAudioStream
-
readToBuffer
- Throws:
IOException
-
readPage
- Throws:
IOException
-
readIdentificationPacket
private com.jcraft.jogg.Packet readIdentificationPacket(com.jcraft.jogg.Page p_329701_) throws IOException - Throws:
IOException
-
readPacket
- Throws:
IOException
-
getSamplesToWrite
private long getSamplesToWrite(int p_328687_) -
readChunk
- Specified by:
readChunk
in interfaceFloatSampleSource
- Throws:
IOException
-
copyAnyChannels
private static void copyAnyChannels(float[][] p_327919_, int p_335236_, int[] p_332016_, long p_329945_, it.unimi.dsi.fastutil.floats.FloatConsumer p_335757_) -
copyMono
private static void copyMono(float[] p_332068_, int p_333939_, long p_329906_, it.unimi.dsi.fastutil.floats.FloatConsumer p_336173_) -
copyStereo
private static void copyStereo(float[] p_329921_, int p_328265_, float[] p_331752_, int p_331871_, long p_328398_, it.unimi.dsi.fastutil.floats.FloatConsumer p_335978_) -
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-