com.badlogic.gdx.backends.openal
Class OggInputStream
java.lang.Object
java.io.InputStream
com.badlogic.gdx.backends.openal.OggInputStream
- All Implemented Interfaces:
- Closeable
public class OggInputStream
- extends InputStream
An input stream to read Ogg Vorbis.
- Author:
- kevin
OggInputStream
public OggInputStream(InputStream input)
- Create a new stream to decode OGG data
- Parameters:
input - The input stream from which to read the OGG file
getLength
public int getLength()
- Get the number of bytes on the stream
- Returns:
- The number of the bytes on the stream
getChannels
public int getChannels()
getSampleRate
public int getSampleRate()
available
public int available()
- Overrides:
available in class InputStream
- See Also:
InputStream.available()
read
public int read()
- Specified by:
read in class InputStream
atEnd
public boolean atEnd()
read
public int read(byte[] b,
int off,
int len)
- Overrides:
read in class InputStream
read
public int read(byte[] b)
- Overrides:
read in class InputStream
close
public void close()
- Specified by:
close in interface Closeable- Overrides:
close in class InputStream
Copyright © 2013. All Rights Reserved.