com.badlogic.gdx.backends.openal
Class OggInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by com.badlogic.gdx.backends.openal.OggInputStream
All Implemented Interfaces:
Closeable

public class OggInputStream
extends InputStream

An input stream to read Ogg Vorbis.

Author:
kevin

Constructor Summary
OggInputStream(InputStream input)
          Create a new stream to decode OGG data
 
Method Summary
 boolean atEnd()
           
 int available()
           
 void close()
           
 int getChannels()
           
 int getLength()
          Get the number of bytes on the stream
 int getSampleRate()
           
 int read()
           
 int read(byte[] b)
           
 int read(byte[] b, int off, int len)
           
 
Methods inherited from class java.io.InputStream
mark, markSupported, reset, skip
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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
Method Detail

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.