Class OggLoader
java.lang.Object
de.pottgames.tuningfork.OggLoader
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic SoundBufferload(com.badlogic.gdx.files.FileHandle fileHandle) Loads an ogg into aSoundBuffer.static SoundBufferload(OggInputStream input) Loads aSoundBufferfrom aOggInputStream.static SoundBufferLoads an ogg into aSoundBuffer.static SoundBufferload(InputStream stream) Loads an ogg into aSoundBufferand closes the InputStream afterward.static SoundBufferloadNonPacked(String path) Loads an ogg into aSoundBuffer.static ReadableSoundBufferloadNonPackedReadable(String path) Loads an ogg into aReadableSoundBuffer.static ReadableSoundBufferloadReadable(com.badlogic.gdx.files.FileHandle fileHandle) Loads an ogg into aReadableSoundBuffer.static ReadableSoundBufferloadReadable(OggInputStream input) Loads aReadableSoundBufferfrom aOggInputStream.static ReadableSoundBufferloadReadable(File file) Loads an ogg into aReadableSoundBuffer.static ReadableSoundBufferloadReadable(InputStream stream) Loads an ogg into aSoundBufferand closes the InputStream afterward.static ReadableSoundBufferloadReadableReverse(com.badlogic.gdx.files.FileHandle fileHandle) Loads an ogg file in reverse into aReadableSoundBuffer.static SoundBufferloadReverse(com.badlogic.gdx.files.FileHandle fileHandle) Loads an ogg file in reverse into aSoundBuffer.
-
Constructor Details
-
OggLoader
public OggLoader()
-
-
Method Details
-
load
Loads an ogg into aSoundBuffer.- Parameters:
file- the file- Returns:
- the SoundBuffer
-
loadReadable
Loads an ogg into aReadableSoundBuffer.- Parameters:
file- the file- Returns:
- the SoundBuffer
-
load
Loads an ogg into aSoundBuffer.- Parameters:
fileHandle- the file handle- Returns:
- the SoundBuffer
-
loadReadable
Loads an ogg into aReadableSoundBuffer.- Parameters:
fileHandle- the file handle- Returns:
- the SoundBuffer
-
loadNonPacked
Loads an ogg into aSoundBuffer. Referenced file must not be packed into a jar. Be careful with this as packaging files into the jar is libGDXs default behavior on distribution.- Parameters:
path- the path to the file- Returns:
- the SoundBuffer
-
loadNonPackedReadable
Loads an ogg into aReadableSoundBuffer. Referenced file must not be packed into a jar. Be careful with this as packaging files into the jar is libGDXs default behavior on distribution.- Parameters:
path- the path to the file- Returns:
- the SoundBuffer
-
load
Loads an ogg into aSoundBufferand closes the InputStream afterward.- Parameters:
stream- the input stream- Returns:
- the SoundBuffer
-
loadReadable
Loads an ogg into aSoundBufferand closes the InputStream afterward.- Parameters:
stream- the input stream- Returns:
- the SoundBuffer
-
load
Loads aSoundBufferfrom aOggInputStream.- Parameters:
input- the OggInputStream- Returns:
- the SoundBuffer
-
loadReadable
Loads aReadableSoundBufferfrom aOggInputStream.- Parameters:
input- the OggInputStream- Returns:
- the ReadableSoundBuffer
-
loadReverse
Loads an ogg file in reverse into aSoundBuffer.- Parameters:
fileHandle- the file handle- Returns:
- the SoundBuffer
-
loadReadableReverse
Loads an ogg file in reverse into aReadableSoundBuffer.- Parameters:
fileHandle- the file handle- Returns:
- the SoundBuffer
-