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. |
getResult, isFinished
public LibgdxAsyncSoundResult(FileHandle file)
protected java.util.concurrent.Callable<java.lang.Object> asyncReadFile(FileHandle file)
AsyncSoundResult
Callable
which does the I/O required to load the sound.asyncReadFile
in class AsyncSoundResult
file
- The FileHandle
to load the audio fromCallable
doing the required I/O.protected Sound makeSound(AsyncResult result)
AsyncSoundResult
Sound
object on the current thread.makeSound
in class AsyncSoundResult
result
- an AsyncResult
containing the results of {AsyncSoundResult.asyncReadFile(FileHandle)
}Sound
object