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

public Class Wav

extends Object
Class Inheritance
Imports
java.io.EOFException, .FilterInputStream, .IOException, com.badlogic.gdx.files.FileHandle, com.badlogic.gdx.utils.GdxRuntimeException, .StreamUtils

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
public static class
public static class

Constructor Summary

AccessConstructor and Description
public
Wav()

Method Summary

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

Wavback to summary
public Wav()
com.badlogic.gdx.backends.lwjgl3.audio back to summary

public Class Wav.Music

extends OpenALMusic
Class Inheritance

Field Summary

Modifier and TypeField and Description
private Wav.WavInputStream
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

inputback to summary
private Wav.WavInputStream input

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 Wav.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)
com.badlogic.gdx.backends.lwjgl3.audio back to summary

public Class Wav.WavInputStream

extends FilterInputStream
Class Inheritance

Author
Nathan Sweet

Field Summary

Modifier and TypeField and Description
public int
public int
public int
public int
public int
Inherited from java.io.FilterInputStream:
in

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
private String

Returns:

A human-readable name for the codec.
getCodecName
(int
16-bit value from the fmt chunk.
type
)

List is a combination of Audacity's export formats and Windows ACM.

public int
read(byte[] buffer)

Overrides java.io.FilterInputStream.read.

Reads up to b.length bytes of data from this input stream into an array of bytes.

private int
seekToChunk(char c1, char c2, char c3, char c4)

private void
skipFully(int count)

Inherited from java.io.FilterInputStream:
availableclosemarkmarkSupportedreadreadresetskip

Field Detail

bitDepthback to summary
public int bitDepth
channelsback to summary
public int channels
dataRemainingback to summary
public int dataRemaining
sampleRateback to summary
public int sampleRate
typeback to summary
public int type

Constructor Detail

WavInputStreamback to summary
public WavInputStream(FileHandle file)

Method Detail

getCodecNameback to summary
private String getCodecName(int type)

List is a combination of Audacity's export formats and Windows ACM. For a more thorough list, see https://wiki.multimedia.cx/index.php/TwoCC

Parameters
type:int

16-bit value from the fmt chunk.

Returns:String

A human-readable name for the codec.

readback to summary
public int read(byte[] buffer) throws IOException

Overrides java.io.FilterInputStream.read.

Doc from java.io.FilterInputStream.read.

Reads up to b.length bytes of data from this input stream into an array of bytes. This method blocks until some input is available.

Exceptions
IOException:
if an I/O error occurs.
seekToChunkback to summary
private int seekToChunk(char c1, char c2, char c3, char c4) throws IOException
skipFullyback to summary
private void skipFully(int count) throws IOException