APIdia Launch Partner
Top Inners Constructors Methods
com.badlogic.gdx.backends.lwjgl3.audio

public Class Ogg

extends Object
Class Inheritance
Imports
com.badlogic.gdx.files.FileHandle, com.badlogic.gdx.utils.GdxRuntimeException, .StreamUtils, org.lwjgl.stb.STBVorbis, org.lwjgl.system.MemoryStack, .MemoryUtil, org.lwjgl.system.libc.LibCStdlib, java.nio.ByteBuffer, .IntBuffer, .ShortBuffer

Author
Nathan Sweet

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
public static class

Constructor Summary

AccessConstructor and Description
public
Ogg()

Method Summary

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

Oggback to summary
public Ogg()
com.badlogic.gdx.backends.lwjgl3.audio back to summary

public Class Ogg.Music

extends OpenALMusic
Class Inheritance

Field Summary

Modifier and TypeField and Description
private OggInputStream
private OggInputStream
Inherited from com.badlogic.gdx.backends.lwjgl3.audio.OpenALMusic:
file

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
protected void
loop()

Overrides com.badlogic.gdx.backends.lwjgl3.audio.OpenALMusic.loop.

By default, does just the same as reset().

public int
read(byte[] buffer)

Implements abstract com.badlogic.gdx.backends.lwjgl3.audio.OpenALMusic.read.

Fills as much of the buffer as possible and returns the number of bytes filled.

public void
reset()

Implements abstract com.badlogic.gdx.backends.lwjgl3.audio.OpenALMusic.reset.

Resets the stream to the beginning.

Inherited from com.badlogic.gdx.backends.lwjgl3.audio.OpenALMusic:
disposegetChannelsgetPositiongetRategetSourceIdgetVolumeisLoopingisPlayingpauseplaysetLoopingsetOnCompletionListenersetPansetPositionsetupsetVolumestopupdate

Field Detail

inputback to summary
private OggInputStream input
previousInputback to summary
private OggInputStream previousInput

Constructor Detail

Musicback to summary
public Music(OpenALLwjgl3Audio audio, FileHandle file)

Method Detail

loopback to summary
protected void loop()

Overrides com.badlogic.gdx.backends.lwjgl3.audio.OpenALMusic.loop.

Doc from com.badlogic.gdx.backends.lwjgl3.audio.OpenALMusic.loop.

By default, does just the same as reset(). Used to add special behaviour in Ogg.Music.

Annotations
@Override
readback to summary
public int read(byte[] buffer)

Implements abstract com.badlogic.gdx.backends.lwjgl3.audio.OpenALMusic.read.

Doc from com.badlogic.gdx.backends.lwjgl3.audio.OpenALMusic.read.

Fills as much of the buffer as possible and returns the number of bytes filled. Returns <= 0 to indicate the end of the stream.

resetback to summary
public void reset()

Implements abstract com.badlogic.gdx.backends.lwjgl3.audio.OpenALMusic.reset.

Doc from com.badlogic.gdx.backends.lwjgl3.audio.OpenALMusic.reset.

Resets the stream to the beginning.

com.badlogic.gdx.backends.lwjgl3.audio back to summary

public Class Ogg.Sound

extends OpenALSound
Class Inheritance

Constructor Summary

AccessConstructor and Description
public

Method Summary

Inherited from com.badlogic.gdx.backends.lwjgl3.audio.OpenALSound:
disposedurationgetChannelsgetRategetTypelooplooplooppausepauseplayplayplayresumeresumesetLoopingsetPansetPitchsetTypesetupsetupsetVolumestopstop

Constructor Detail

Soundback to summary
public Sound(OpenALLwjgl3Audio audio, FileHandle file)