public class LibgdxAsyncSoundResult extends AsyncSoundResult
handle| Constructor and Description |
|---|
LibgdxAsyncSoundResult(FileHandle file) |
| Modifier and Type | Method and Description |
|---|---|
protected java.util.concurrent.Callable<java.lang.Object> |
asyncReadFile(FileHandle file)
Returns a
Callable which does the I/O required to load the sound. |
protected Sound |
makeSound(AsyncResult result)
Instantiates a
Sound object on the current thread. |
protected boolean |
supportsLoadingAudioOnNonGameThread()
Returns if this platforms supports loading sounds on non-game thread
|
getResult, isFinishedpublic LibgdxAsyncSoundResult(FileHandle file)
protected java.util.concurrent.Callable<java.lang.Object> asyncReadFile(FileHandle file)
AsyncSoundResultCallable which does the I/O required to load the sound.asyncReadFile in class AsyncSoundResultfile - The FileHandle to load the audio fromCallable doing the required I/O.protected Sound makeSound(AsyncResult result)
AsyncSoundResultSound object on the current thread.makeSound in class AsyncSoundResultresult - an AsyncResult containing the results of {AsyncSoundResult.asyncReadFile(FileHandle)}Sound objectprotected boolean supportsLoadingAudioOnNonGameThread()
AsyncSoundResultsupportsLoadingAudioOnNonGameThread in class AsyncSoundResult