Class OggVorbisDecoder
java.lang.Object
games.stendhal.client.sound.system.SignalProcessor
games.stendhal.client.sound.system.processors.OggVorbisDecoder
- Author:
- silvio
-
Constructor Summary
ConstructorsConstructorDescriptionOggVorbisDecoder(InputStream stream, int inputBufferSize, int outputNumSamplesPerChannel) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()protected booleangenerate()This function should be overwritten by all classes that want to generate an PCM audio stream e.g.intprotected float[]intprotected final voidinit(InputStream stream, int inputBufferSize, int outputNumSamplesPerChannel) voidopen(InputStream stream, int inputBufferSize, int outputNumSamplesPerChannel) booleanprotected intread()protected booleanprotected com.jcraft.jogg.PacketreadPacket(boolean ignoreHoles) protected com.jcraft.jogg.PagereadPage(boolean ignoreHoles, boolean updateStreamState) Methods inherited from class games.stendhal.client.sound.system.SignalProcessor
connectTo, createChain, disconnect, finished, insert, modify, propagate, quit, replace, request, split
-
Constructor Details
-
OggVorbisDecoder
public OggVorbisDecoder(InputStream stream, int inputBufferSize, int outputNumSamplesPerChannel) throws IOException - Throws:
IOException
-
-
Method Details
-
init
protected final void init(InputStream stream, int inputBufferSize, int outputNumSamplesPerChannel) throws IOException - Throws:
IOException
-
readPage
protected com.jcraft.jogg.Page readPage(boolean ignoreHoles, boolean updateStreamState) throws IOException - Throws:
IOException
-
readPacket
- Throws:
IOException
-
readHeader
- Throws:
IOException
-
read
- Throws:
IOException
-
getOutputBuffer
protected float[] getOutputBuffer() -
generate
protected boolean generate()Description copied from class:SignalProcessorThis function should be overwritten by all classes that want to generate an PCM audio stream e.g. a mp3 decoder, a frequency generator, ...- Overrides:
generatein classSignalProcessor- Returns:
true, until the stream is finished
-
getNumChannels
public int getNumChannels() -
getSampleRate
public int getSampleRate() -
reachedEndOfStream
public boolean reachedEndOfStream() -
open
public void open(InputStream stream, int inputBufferSize, int outputNumSamplesPerChannel) throws IOException - Throws:
IOException
-
close
public void close()
-