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

public Class Mp3

extends Object
Class Inheritance
Imports
java.io.ByteArrayOutputStream, javazoom.jl.decoder.Bitstream, .BitstreamException, .Header, .MP3Decoder, .OutputBuffer, com.badlogic.gdx.files.FileHandle, com.badlogic.gdx.utils.GdxRuntimeException

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
Mp3()

Method Summary

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

Mp3back to summary
public Mp3()
com.badlogic.gdx.backends.lwjgl3.audio back to summary

public Class Mp3.Music

extends OpenALMusic
Class Inheritance

Field Summary

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

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
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:
disposegetChannelsgetPositiongetRategetSourceIdgetVolumeisLoopingisPlayinglooppauseplaysetLoopingsetOnCompletionListenersetPansetPositionsetupsetVolumestopupdate

Field Detail

bitstreamback to summary
private Bitstream bitstream
decoderback to summary
private MP3Decoder decoder
outputBufferback to summary
private OutputBuffer outputBuffer

Constructor Detail

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

Method Detail

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 Mp3.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)