APIdia Launch Partner
Top Description Inners Fields Constructors Methods
com.badlogic.gdx.assets.loaders

public Class SoundLoader

extends AsynchronousAssetLoader<Sound, SoundLoader.SoundParameter>
Class Inheritance
Imports
com.badlogic.gdx.Gdx, com.badlogic.gdx.assets.AssetDescriptor, .AssetLoaderParameters, .AssetManager, com.badlogic.gdx.audio.Sound, com.badlogic.gdx.files.FileHandle, com.badlogic.gdx.utils.Array

AssetLoader to load Sound instances.
Author
mzechner

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class

Field Summary

Modifier and TypeField and Description
private Sound

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public Array<AssetDescriptor<T>>
getDependencies(String fileName, FileHandle file, SoundLoader.SoundParameter parameter)

Implements abstract com.badlogic.gdx.assets.loaders.AssetLoader.getDependencies.

Returns the assets this asset requires to be loaded first.

protected Sound

Returns:

the currently loaded Sound, otherwise null if no Sound has been loaded yet.
getLoadedSound
()

Returns the Sound instance currently loaded by this SoundLoader.

public void
loadAsync(AssetManager manager, String fileName, FileHandle file, SoundLoader.SoundParameter parameter)

Implements abstract com.badlogic.gdx.assets.loaders.AsynchronousAssetLoader.loadAsync.

Loads the non-OpenGL part of the asset and injects any dependencies of the asset into the AssetManager.

public Sound
loadSync(AssetManager manager, String fileName, FileHandle file, SoundLoader.SoundParameter parameter)

Implements abstract com.badlogic.gdx.assets.loaders.AsynchronousAssetLoader.loadSync.

Loads the OpenGL part of the asset.

Inherited from com.badlogic.gdx.assets.loaders.AsynchronousAssetLoader:
unloadAsync

Field Detail

soundback to summary
private Sound sound

Constructor Detail

SoundLoaderback to summary
public SoundLoader(FileHandleResolver resolver)

Method Detail

getDependenciesback to summary
public Array<AssetDescriptor<T>> getDependencies(String fileName, FileHandle file, SoundLoader.SoundParameter parameter)

Implements abstract com.badlogic.gdx.assets.loaders.AssetLoader.getDependencies.

Doc from com.badlogic.gdx.assets.loaders.AssetLoader.getDependencies.

Returns the assets this asset requires to be loaded first. This method may be called on a thread other than the GL thread.

Annotations
@Override
getLoadedSoundback to summary
protected Sound getLoadedSound()

Returns the Sound instance currently loaded by this SoundLoader.

Returns:Sound

the currently loaded Sound, otherwise null if no Sound has been loaded yet.

loadAsyncback to summary
public void loadAsync(AssetManager manager, String fileName, FileHandle file, SoundLoader.SoundParameter parameter)

Implements abstract com.badlogic.gdx.assets.loaders.AsynchronousAssetLoader.loadAsync.

Doc from com.badlogic.gdx.assets.loaders.AsynchronousAssetLoader.loadAsync.

Loads the non-OpenGL part of the asset and injects any dependencies of the asset into the AssetManager.

Annotations
@Override
loadSyncback to summary
public Sound loadSync(AssetManager manager, String fileName, FileHandle file, SoundLoader.SoundParameter parameter)

Implements abstract com.badlogic.gdx.assets.loaders.AsynchronousAssetLoader.loadSync.

Doc from com.badlogic.gdx.assets.loaders.AsynchronousAssetLoader.loadSync.

Loads the OpenGL part of the asset.

Annotations
@Override
com.badlogic.gdx.assets.loaders back to summary

public Class SoundLoader.SoundParameter

extends AssetLoaderParameters<Sound>
Class Inheritance

Field Summary

Inherited from com.badlogic.gdx.assets.AssetLoaderParameters:
loadedCallback

Constructor Summary

AccessConstructor and Description
public

Constructor Detail

SoundParameterback to summary
public SoundParameter()