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_340927_, int p_341332_, int[] p_341269_, long p_341072_, it.unimi.dsi.fastutil.floats.FloatConsumer p_341382_) private static void
copyMono
(float[] p_340838_, int p_341058_, long p_341397_, it.unimi.dsi.fastutil.floats.FloatConsumer p_340852_) private static void
copyStereo
(float[] p_341142_, int p_341000_, float[] p_340922_, int p_341132_, long p_341389_, it.unimi.dsi.fastutil.floats.FloatConsumer p_341076_) private long
getSamplesToWrite
(int p_341351_) private static boolean
isError
(int p_340842_) boolean
readChunk
(it.unimi.dsi.fastutil.floats.FloatConsumer p_341270_) private com.jcraft.jogg.Packet
readIdentificationPacket
(com.jcraft.jogg.Page p_340874_) 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_340842_) -
getFormat
- Specified by:
getFormat
in interfaceAudioStream
-
readToBuffer
- Throws:
IOException
-
readPage
- Throws:
IOException
-
readIdentificationPacket
private com.jcraft.jogg.Packet readIdentificationPacket(com.jcraft.jogg.Page p_340874_) throws IOException - Throws:
IOException
-
readPacket
- Throws:
IOException
-
getSamplesToWrite
private long getSamplesToWrite(int p_341351_) -
readChunk
- Specified by:
readChunk
in interfaceFloatSampleSource
- Throws:
IOException
-
copyAnyChannels
private static void copyAnyChannels(float[][] p_340927_, int p_341332_, int[] p_341269_, long p_341072_, it.unimi.dsi.fastutil.floats.FloatConsumer p_341382_) -
copyMono
private static void copyMono(float[] p_340838_, int p_341058_, long p_341397_, it.unimi.dsi.fastutil.floats.FloatConsumer p_340852_) -
copyStereo
private static void copyStereo(float[] p_341142_, int p_341000_, float[] p_340922_, int p_341132_, long p_341389_, it.unimi.dsi.fastutil.floats.FloatConsumer p_341076_) -
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-