load
fun load(file: FileHandle, onError: (MusicTrackController) -> Unit? = null, onSuccess: (MusicTrackController) -> Unit? = null)
Content copied to clipboard
Loads file into this controller's music and optionally calls onSuccess when done. Failures are silently logged to console, and onError is called. Callbacks run on the background thread.
Throws
if called in the wrong state (fresh or cleared instance only)
Sources
jvm source
Link copied to clipboard